@esri/solutions-components 5.1.0-next.166 → 5.1.0-next.168

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 (76) hide show
  1. package/dist/cdn/2MCOUOTQ.js +2 -0
  2. package/dist/cdn/{SJ2IGQMX.js → 4D46WTPB.js} +1 -1
  3. package/dist/cdn/4L7TJNAM.js +43 -0
  4. package/dist/cdn/6KO7AYJN.js +2 -0
  5. package/dist/cdn/{QVUBUYP6.js → 6LN2ZRAZ.js} +1 -1
  6. package/dist/cdn/{PVPKXQBE.js → BU6BDYWD.js} +3 -3
  7. package/dist/cdn/{CKWEF3KW.js → BYOO7TWU.js} +1 -1
  8. package/dist/cdn/{T26SIBKB.js → DFHULDJT.js} +1 -1
  9. package/dist/cdn/{GI33DSVT.js → DGGIENYR.js} +1 -1
  10. package/dist/cdn/{IVKRYKER.js → DSJRQHKW.js} +1 -1
  11. package/dist/cdn/{BT3FYIEX.js → EBAOA6CS.js} +1 -1
  12. package/dist/cdn/{ZOFZVFBV.js → F5463ORT.js} +1 -1
  13. package/dist/cdn/{K5ZYDQR7.js → FK6Q2LYR.js} +1 -1
  14. package/dist/cdn/{UTUOUV3E.js → HGOH5KSX.js} +1 -1
  15. package/dist/cdn/{XLGAHCS7.js → HUYLWWWJ.js} +1 -1
  16. package/dist/cdn/{Y32IJPXS.js → I6EH3H6Z.js} +1 -1
  17. package/dist/cdn/{25QYS4LE.js → IP7IUAM5.js} +1 -1
  18. package/dist/cdn/{3FKVBTJC.js → JCGZXASG.js} +1 -1
  19. package/dist/cdn/{P5RZHVDH.js → JJLYSRRX.js} +1 -1
  20. package/dist/cdn/{JGL4WYTO.js → K6O33P5T.js} +1 -1
  21. package/dist/cdn/{RHAHQ4DB.js → LQ6PZESP.js} +1 -1
  22. package/dist/cdn/{AFLXI5U2.js → LUIN5XSX.js} +1 -1
  23. package/dist/cdn/LWQ4SBU2.js +2 -0
  24. package/dist/cdn/{DKZ4FZKK.js → LXGPZJIZ.js} +1 -1
  25. package/dist/cdn/{ZSTC2DJY.js → MBT2S4J5.js} +1 -1
  26. package/dist/cdn/{GJWHFH2F.js → MXF4BYLT.js} +1 -1
  27. package/dist/cdn/{C47WRU5U.js → OTQLLNFG.js} +1 -1
  28. package/dist/cdn/{RYJ556XB.js → PM7QF66M.js} +1 -1
  29. package/dist/cdn/{TCRMAQDF.js → QKSC4XFL.js} +1 -1
  30. package/dist/cdn/{2BRPSISV.js → ROGRXRFI.js} +1 -1
  31. package/dist/cdn/{46I7FRQJ.js → RWHR4UZT.js} +1 -1
  32. package/dist/cdn/{VXGLGWIF.js → SNA7NRRQ.js} +3 -3
  33. package/dist/cdn/{K4LZRLGL.js → T5R4UF7Y.js} +1 -1
  34. package/dist/cdn/{KD4IHPH6.js → UOQSRV3X.js} +2 -2
  35. package/dist/cdn/{2VG5GRFH.js → V6N4G75E.js} +1 -1
  36. package/dist/cdn/{2YC25V3L.js → VJBL5ZUX.js} +1 -1
  37. package/dist/cdn/{UEYON3AE.js → VLBNRURV.js} +1 -1
  38. package/dist/cdn/{XXCHYJ3I.js → VLF76E2L.js} +1 -1
  39. package/dist/cdn/{2BI4S6V2.js → VY364MR6.js} +1 -1
  40. package/dist/cdn/{Z7VXHUQA.js → WKRSOM6J.js} +1 -1
  41. package/dist/cdn/{VL2NVCIB.js → WRWWRMHZ.js} +3 -3
  42. package/dist/cdn/{VTFLDHVU.js → X6TQNCB3.js} +1 -1
  43. package/dist/cdn/Y2MAVMNV.js +2 -0
  44. package/dist/cdn/{66N4ZZKC.js → ZWL4JFKS.js} +1 -1
  45. package/dist/cdn/index.js +1 -1
  46. package/dist/chunks/assessBuildRequest.js +2 -2
  47. package/dist/chunks/assistantResponse.js +23 -29
  48. package/dist/chunks/designSolution.js +3 -3
  49. package/dist/chunks/interfaces.js +6 -3
  50. package/dist/chunks/updateDesign.js +1 -1
  51. package/dist/components/arcgis-solutions-assistant/customElement.js +9 -9
  52. package/dist/components/card-manager/customElement.d.ts +0 -3
  53. package/dist/components/card-manager/customElement.js +6 -6
  54. package/dist/components/create-feature/customElement.js +80 -62
  55. package/dist/components/create-related-feature/customElement.js +12 -9
  56. package/dist/components/crowdsource-manager/customElement.js +3 -3
  57. package/dist/components/layer-table/customElement.js +13 -13
  58. package/dist/components/solution-configure-titles/customElement.js +2 -1
  59. package/dist/components/solution-delete-dialog/customElement.js +2 -1
  60. package/dist/components/solution-deployed-card-panel/customElement.js +8 -4
  61. package/dist/components/solutions-deploy-app/customElement.js +14 -14
  62. package/dist/docs/api.json +1 -1
  63. package/dist/docs/docs.json +1 -1
  64. package/dist/docs/vscode.html-custom-data.json +1 -1
  65. package/dist/docs/web-types.json +1 -1
  66. package/dist/solutions-components_commit.txt +6 -6
  67. package/dist/types/lumina.d.ts +0 -1
  68. package/dist/types/preact.d.ts +0 -1
  69. package/dist/types/react.d.ts +0 -1
  70. package/dist/types/stencil.d.ts +0 -1
  71. package/package.json +1 -1
  72. package/dist/cdn/2NSMAAXL.js +0 -2
  73. package/dist/cdn/632J5NXN.js +0 -49
  74. package/dist/cdn/CDT6E3VG.js +0 -2
  75. package/dist/cdn/HQCHD3FH.js +0 -2
  76. package/dist/cdn/RSCCUNJ4.js +0 -2
@@ -2,15 +2,15 @@
2
2
  import { c as I } from "../../chunks/runtime.js";
3
3
  import { a as x, g as w } from "../../chunks/mapViewUtils.js";
4
4
  import { u as A } from "../../chunks/useT9n.js";
5
- import { css as M, html as n, nothing as y } from "lit";
6
- import { createRef as p, ref as u } from "lit-html/directives/ref.js";
7
- import { LitElement as E, createEvent as c, noShadowRoot as L, safeClassMap as v } from "@arcgis/lumina";
8
- import { p as k } from "../../chunks/queryUtils.js";
5
+ import { css as M, html as o, nothing as y } from "lit";
6
+ import { createRef as d, ref as h } from "lit-html/directives/ref.js";
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
9
  import P from "@arcgis/core/form/ExpressionInfo.js";
10
- import S from "@arcgis/core/layers/FeatureLayer.js";
10
+ import F from "@arcgis/core/layers/FeatureLayer.js";
11
11
  import C from "@arcgis/core/form/elements/FieldElement.js";
12
12
  import $ from "@arcgis/core/form/FormTemplate.js";
13
- import F from "@arcgis/core/views/MapView.js";
13
+ import S from "@arcgis/core/views/MapView.js";
14
14
  import V from "@arcgis/core/Graphic.js";
15
15
  import * as f from "@arcgis/core/core/reactiveUtils.js";
16
16
  import * as T from "@arcgis/core/rest/locator.js";
@@ -21,7 +21,7 @@ import z from "@arcgis/core/geometry/SpatialReference.js";
21
21
  const H = M`@layer{:host{display:block}.hide-editor-toolbar .esri-editor__panel-toolbar{display:none!important}.esri-editor__panel-content{padding-block:0px!important}.esri-editor .esri-item-list__group__header,.esri-editor__panel-content__section .esri-widget__heading{display:none!important}.esri-editor .esri-item-list__filter-container--sticky{padding-block:0px!important;padding-inline:10px!important}.search-widget{width:92%!important;margin:5px 14px 20px}.display-none{display:none!important}.hide-map{height:1%!important;visibility:hidden;position:static!important}.show-map{padding:10px!important;position:absolute!important;bottom:0;height:auto!important;width:calc(100% - 22px)}.notice-msg{padding:10px;width:calc(100% - 20px)}.edit-location-btn{margin:5px;display:flex}.esri-editor__panel-content{padding-block:10px!important}.image-preview-container{padding:10px}.esri-editor{height:auto!important}.height-fit-content{height:fit-content!important}.content-container{padding:1.5rem}.instruction-text{margin-bottom:1.5rem;font-size:1rem}.selected-card{border:2px solid var(--calcite-ui-brand)}.upload-img-footer-container{width:100%;gap:5px;display:grid}.info-container{display:flex;align-items:center;gap:6px;margin-bottom:10px}.info-container calcite-icon{--calcite-icon-color: var(--calcite-color-brand)}.info-container span{font-size:12px;color:var(--calcite-ui-text-3)}.padding-10{padding:10px}.report-selection-container{display:flex;flex-direction:column;padding:10px;--calcite-card-border-color: var(--calcite-color-border-1)}.pb-12{padding-bottom:12px!important}.pt-0{padding-top:0!important}.pt-15{padding-top:15px!important}.option-description-container{display:flex;align-items:center;gap:6px}.cursor-pointer{cursor:pointer;padding:6px 0}.card-body-content{display:flex;flex-direction:row;align-items:center;padding:10px 5px;gap:15px}.text-stack{display:flex;flex-direction:column;gap:2px}.option-title{font-weight:var(--calcite-font-weight-bold);color:var(--calcite-ui-text-1);font-size:var(--calcite-font-size--1)}.option-description{color:var(--calcite-ui-text-3);font-size:var(--calcite-font-size--1)}.action-footer{display:flex;justify-content:center;margin-top:16px}.analysis-wrapper{display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;margin:auto}.analyzing-icon{--calcite-icon-color: var(--calcite-color-brand);animation:sparkle 2s infinite ease-in-out}.adjusted-height{height:30px!important;min-height:auto!important}@keyframes sparkle{0%,to{transform:scale(1)}50%{transform:scale(1.5)}}@media only screen and (max-width:600px){.esri-editor__panel-content{padding-block:0!important;min-height:0!important}}}`, _ = "geocodedLocation", D = `Extract the address from the user's message and return it in JSON format '{"address":"<address>"}'. If no address is found, return null.`;
22
22
  class N extends E {
23
23
  constructor() {
24
- super(...arguments), this.customizeSubmit = !1, this.enableSearch = !1, this.enableSnapping = !1, this.floorLevel = "", this.isMobile = !1, this.selectedLayerId = "", this.showGuidingMsg = !0, this.submitNewReportsMessage = "", this.updateMapPosition = !1, this.reportingArea = !1, this.reportingAreaLayer = "", this.reportingAreaMessage = "", this.showSketchWidgets = !1, this.allowMultipleCreation = !1, this.popupEnabled = !1, this.showLayerVisibilityMsg = !1, this.enablePhotoLocation = !1, this.enableMessageLocation = !1, this._currentPage = "templatePicker", this._showSearchComponent = this.enableSearch, this._layerInfos = [], this._inValidGeometryDrawn = !1, this._selectedImageBase64 = "", this._enteredMessage = "", this._analysisFailed = !1, this._translations = A({ name: "create-feature", blocking: !0 }), this._addingAttachment = !1, this._uploadedImage = null, this._calciteNotice = p(), this._editor = p(), this._mapViewContainer = p(), this._searchRef = p(), this._inputImageForAI = p(), this._guidingMessageRefNode = p(), this._abortController = new AbortController(), this._awaitingLayerEdits = !1, this._pendingAttachmentUpload = !1, this.success = c(), this.fail = c(), this.drawComplete = c(), this.editingLocation = c(), this.editingAttachment = c(), this.progressStatus = c(), this.modeChanged = c(), this.activeFeatureCountChange = c(), this.createFeatureEditorInitialized = c(), this.createFeatureEditorClosed = c(), this._onLayerEdits = async (e) => {
24
+ super(...arguments), this.customizeSubmit = !1, this.enableSearch = !1, this.enableSnapping = !1, this.floorLevel = "", this.isMobile = !1, this.selectedLayerId = "", this.showGuidingMsg = !0, this.submitNewReportsMessage = "", this.updateMapPosition = !1, this.reportingArea = !1, this.reportingAreaLayer = "", this.reportingAreaMessage = "", this.showSketchWidgets = !1, this.allowMultipleCreation = !1, this.popupEnabled = !1, this.showLayerVisibilityMsg = !1, this.enablePhotoLocation = !1, this.enableMessageLocation = !1, this._currentPage = "templatePicker", this._showSearchComponent = this.enableSearch, this._layerInfos = [], this._inValidGeometryDrawn = !1, this._selectedImageBase64 = "", this._enteredMessage = "", this._analysisFailed = !1, this._translations = A({ name: "create-feature", blocking: !0 }), this._addingAttachment = !1, this._uploadedImage = null, this._calciteNotice = d(), this._editor = d(), this._mapViewContainer = d(), this._searchRef = d(), this._inputImageForAI = d(), this._messageTextAreaRef = d(), this._guidingMessageRefNode = d(), this._abortController = new AbortController(), this._awaitingLayerEdits = !1, this._pendingAttachmentUpload = !1, this.success = c(), this.fail = c(), this.drawComplete = c(), this.editingLocation = c(), this.editingAttachment = c(), this.progressStatus = c(), this.modeChanged = c(), this.activeFeatureCountChange = c(), this.createFeatureEditorInitialized = c(), this.createFeatureEditorClosed = c(), this._onLayerEdits = async (e) => {
25
25
  if (!this._awaitingLayerEdits)
26
26
  return;
27
27
  const t = [
@@ -58,7 +58,7 @@ class N extends E {
58
58
  this.styles = H;
59
59
  }
60
60
  static {
61
- this.shadowRootOptions = L;
61
+ this.shadowRootOptions = k;
62
62
  }
63
63
  willUpdate(e) {
64
64
  e.has("mapView") && this.hasUpdated && this.mapViewWatchHandler(), e.has("isMobile") && this.hasUpdated && this.isMobileHandler(), e.has("enableSearch") && this.hasUpdated && this.searchHandler(), e.has("searchConfiguration") && this.hasUpdated && this.searchConfigurationHandler(this.searchConfiguration, e.get("searchConfiguration"));
@@ -79,10 +79,21 @@ class N extends E {
79
79
  }
80
80
  async submit() {
81
81
  const e = this._editor.value?.activeWorkflow;
82
- if (e && (this._pendingAttachmentUpload = !!(this._selectedLayer && this._selectedLayer.capabilities.data.supportsAttachment && this._selectedImageBase64), this._awaitingLayerEdits = !0, e.data?.creationInfo && this._updatedMapView && (e.data.creationInfo.view = this._updatedMapView), await e.save(), e.data.viewModel.failures.length)) {
83
- const t = e.data.viewModel.failures[0].error;
84
- this._currentPage = "drawing", this._onFail(t);
85
- return;
82
+ if (e) {
83
+ this._pendingAttachmentUpload = !!(this._selectedLayer && this._selectedLayer.capabilities.data.supportsAttachment && this._selectedImageBase64), this._awaitingLayerEdits = !0, e.data?.creationInfo && this._updatedMapView && (e.data.creationInfo.view = this._updatedMapView);
84
+ try {
85
+ await e.save();
86
+ } catch (t) {
87
+ if (this._awaitingLayerEdits = !1, this._pendingAttachmentUpload = !1, t?.name === "AbortError")
88
+ return;
89
+ this._onFail(t);
90
+ return;
91
+ }
92
+ if (e.data.viewModel.failures.length) {
93
+ const t = e.data.viewModel.failures[0].error;
94
+ this._currentPage = "drawing", this._onFail(t);
95
+ return;
96
+ }
86
97
  }
87
98
  }
88
99
  async refresh(e) {
@@ -97,33 +108,36 @@ class N extends E {
97
108
  async loaded() {
98
109
  this._aiAnalysisInfo && !this._aiAnalysisInfo.canUseAI && await this.init();
99
110
  }
100
- async updated() {
101
- if (this.isMobile && this.updateMapPosition) {
102
- const e = this._currentPage === "drawing" ? 80 : 30;
111
+ async updated(e) {
112
+ if (e.has("_currentPage") && await this._focusActivePageInput(), this.isMobile && this.updateMapPosition) {
113
+ const t = this._currentPage === "drawing" ? 80 : 30;
103
114
  await this._searchRef.value?.componentOnReady();
104
- const t = this._showSearchComponent ? this._searchRef.value?.offsetHeight : 0;
115
+ const i = this._showSearchComponent ? this._searchRef.value?.offsetHeight : 0;
105
116
  await this._calciteNotice.value?.componentOnReady();
106
- const a = (this._calciteNotice.value?.offsetHeight || 0) + t + e;
107
- this._mapViewContainer.value && (this._mapViewContainer.value.style.top = `${a}px`);
117
+ const s = (this._calciteNotice.value?.offsetHeight || 0) + i + t;
118
+ this._mapViewContainer.value && (this._mapViewContainer.value.style.top = `${s}px`);
108
119
  }
109
120
  this.reportingAreaMessage && this._guidingMessageRefNode.value?.children[0] && (this._guidingMessageRefNode.value.children[0].style.margin = "0px");
110
121
  }
111
- disconnectedCallback() {
112
- super.disconnectedCallback(), this._editor.value && (this._editor.value.destroy(), this.enableSnapping && this.mapView?.ui.view && (this.mapView.ui.view.grid = null), this._removeHandlers(), this.createFeatureEditorClosed.emit());
122
+ async _focusActivePageInput() {
123
+ this._currentPage === "messageInput" ? (await this._messageTextAreaRef.value?.componentOnReady(), await this._messageTextAreaRef.value?.setFocus()) : this._currentPage === "imageUpload" && (await this._inputImageForAI.value?.componentOnReady(), await this._inputImageForAI.value?.setFocus());
124
+ }
125
+ async disconnectedCallback() {
126
+ super.disconnectedCallback(), this._editor.value && (this._editor.value.activeWorkflow?.activeWorkflow?.hasPendingEdits && (await this._editor.value.activeWorkflow.reset(), await this._editor.value.cancelWorkflow()), await this._editor.value.destroy(), this.enableSnapping && this.mapView?.ui.view && (this.mapView.ui.view.grid = null), this._removeHandlers(), this.createFeatureEditorClosed.emit());
113
127
  }
114
128
  render() {
115
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";
116
- let o = this._translations.chooseCategoryMsg;
117
- const l = this._aiAnalysisInfo?.results?.filter((h) => !h.success && h.key !== _), d = l?.length ? !0 : this._analysisFailed, m = this._getAnalysisErrorMessage(l?.length), g = this._aiAnalysisInfo?.canUseAI && ["chooseReportType", "analyzingImage", "analyzingMessage", "imageUpload", "messageInput"].includes(this._currentPage);
118
- return this._inValidGeometryDrawn ? o = this.reportingAreaMessage || this._translations.reportOutsideAreaMessage : this._currentPage === "drawing" || this._currentPage === "editing" ? o = this._translations.provideLocationMsg : this._currentPage === "featureForm" ? o = this._aiAnalysisInfo?.results?.filter((h) => h.success).length ? this._analysisMode === "text" ? this._translations.textReviewMsg : this._translations.formReviewMsg : this._translations.provideDetailsMsg : s && (o = this._translations.enableFeatureTemplatesMessage), n`${d && n`<calcite-alert auto-close icon=x-octagon kind=danger label @calciteAlertClose=${() => {
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);
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=${() => {
119
133
  this._analysisFailed = !1;
120
- }} open placement=top><div slot=title>${this._translations.error}</div><div slot=message>${m}</div></calcite-alert>` || ""}${g && n`<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 && n`${r && n`<calcite-notice class="notice-msg" .icon=${a} .kind=${i} open ${u(this._calciteNotice)}><div slot=message .innerHTML=${o ?? ""} ${u(this._guidingMessageRefNode)}></div></calcite-notice>` || ""}${this._selectedImageBase64 && this._currentPage === "featureForm" && n`<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 && n`<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._updatedMapView && this._selectedLayer && this._getEditor() || ""}` || ""}<div class=${v(t)} ${u(this._mapViewContainer)}></div>`;
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._updatedMapView && this._selectedLayer && this._getEditor() || ""}` || ""}<div class=${v(t)} ${h(this._mapViewContainer)}></div>`;
121
135
  }
122
136
  async init() {
123
137
  this.mapView && this.selectedLayerId && (this._updatedMapView = this.mapView, await (this.isMobile && this.updateMapPosition ? this.createMobileMapView() : this._loadLayerInfos()));
124
138
  }
125
139
  async createMobileMapView() {
126
- this._mapViewContainer.value && this.mapView && (this._mapViewContainer.value.classList.add("hide-map"), await new F({
140
+ this._mapViewContainer.value && this.mapView && (this._mapViewContainer.value.classList.add("hide-map"), await new S({
127
141
  map: this.mapView.map,
128
142
  container: this._mapViewContainer.value,
129
143
  zoom: this.mapView.zoom,
@@ -157,13 +171,13 @@ class N extends E {
157
171
  }
158
172
  _getReportTypePage() {
159
173
  const e = this._hasImageExtraction(), t = this._hasTextExtraction();
160
- return n`<div class="report-selection-container"><calcite-label class="pb-12">${this._translations.createReportHeading}</calcite-label><div class="option-description-container"><span class="option-description">${this._translations.aiAssistedReport}</span><calcite-icon icon=effects scale=s></calcite-icon></div>${t && n`<calcite-card class="cursor-pointer pt-0" @click=${() => {
174
+ return o`<div class="report-selection-container"><calcite-label class="pb-12">${this._translations.createReportHeading}</calcite-label><div class="option-description-container"><span class="option-description">${this._translations.aiAssistedReport}</span><calcite-icon icon=effects scale=s></calcite-icon></div>${t && o`<calcite-card class="cursor-pointer pt-0" @click=${() => {
161
175
  this._analysisMode = "text", this.progressStatus.emit(35), this._currentPage = "messageInput";
162
176
  }} @keydown=${(i) => {
163
177
  this._activateCardFromKeyboard(i, () => {
164
178
  this._analysisMode = "text", this.progressStatus.emit(35), this._currentPage = "messageInput";
165
179
  });
166
- }}><div slot=description class="card-body-content"><calcite-icon icon=speech-bubble scale=m></calcite-icon><div class="text-stack"><span class="option-title">${this._translations.useDescription}</span><span class="option-description">${this._translations.aiTextAssistantDescription}</span></div></div></calcite-card>` || ""}${e && n`<calcite-card class="cursor-pointer" @click=${() => {
180
+ }}><div slot=description class="card-body-content"><calcite-icon icon=speech-bubble scale=m></calcite-icon><div class="text-stack"><span class="option-title">${this._translations.useDescription}</span><span class="option-description">${this._translations.aiTextAssistantDescription}</span></div></div></calcite-card>` || ""}${e && o`<calcite-card class="cursor-pointer" @click=${() => {
167
181
  this._analysisMode = "image", this.progressStatus.emit(35), this._currentPage = "imageUpload";
168
182
  }} @keydown=${(i) => {
169
183
  this._activateCardFromKeyboard(i, () => {
@@ -181,29 +195,29 @@ class N extends E {
181
195
  (e.key === "Enter" || e.key === " ") && (e.preventDefault(), t());
182
196
  }
183
197
  _getEditor() {
184
- return n`<arcgis-editor class=height-fit-content .view=${this._updatedMapView} .layerInfos=${this._layerInfos} hide-edit-features-section .hideSettingsMenu=${!this.enableSnapping} .hideSketch=${!this.showSketchWidgets || this._selectedLayer?.geometryType === "point"} .hideSnappingControlsElementsEnabledToggle=${!this.enableSnapping} @arcgisReady=${this._onEditorComponentReady} @arcgisPropertyChange=${this._onEditorPropertyChange} @arcgisSketchUpdate=${this._onSketchUpdate} ${u(this._editor)}></arcgis-editor>`;
198
+ return o`<arcgis-editor class=height-fit-content .view=${this._updatedMapView} .layerInfos=${this._layerInfos} hide-edit-features-section .hideSettingsMenu=${!this.enableSnapping} .hideSketch=${!this.showSketchWidgets || this._selectedLayer?.geometryType === "point"} .hideSnappingControlsElementsEnabledToggle=${!this.enableSnapping} @arcgisReady=${this._onEditorComponentReady} @arcgisPropertyChange=${this._onEditorPropertyChange} @arcgisSketchUpdate=${this._onSketchUpdate} ${h(this._editor)}></arcgis-editor>`;
185
199
  }
186
200
  _getSearchComponent() {
187
201
  const e = this._currentPage === "drawing" || this._currentPage === "editing" ? "" : "display-none", t = this.searchConfiguration && this._updatedMapView ? this._getSearchConfig(this.searchConfiguration, this._updatedMapView) : void 0;
188
- return this._updateSearchActiveSourceIndex(), n`<arcgis-search class=${`search-widget ${e}`} .view=${this._updatedMapView} @arcgisSearchComplete=${this.searchComplete} popup-disabled result-graphic-disabled .includeDefaultSourcesDisabled=${!!t?.sources?.length} .sources=${t?.sources || []} .allPlaceholder=${t?.allPlaceholder} .searchAllDisabled=${!t?.searchAllEnabled} ${u(this._searchRef)}></arcgis-search>`;
202
+ return this._updateSearchActiveSourceIndex(), o`<arcgis-search class=${`search-widget ${e}`} .view=${this._updatedMapView} @arcgisSearchComplete=${this.searchComplete} popup-disabled result-graphic-disabled .includeDefaultSourcesDisabled=${!!t?.sources?.length} .sources=${t?.sources || []} .allPlaceholder=${t?.allPlaceholder} .searchAllDisabled=${!t?.searchAllEnabled} ${h(this._searchRef)}></arcgis-search>`;
189
203
  }
190
204
  _aiImageExtractionPage() {
191
205
  const e = this._selectedImageBase64 !== "", t = e ? this._translations.replaceImage : this._translations.imageUploadLimitHint;
192
- return n`<calcite-notice class="notice-msg" icon=effects kind=brand open><div slot=message>${this._translations.aiAssistantProcessingHint}</div></calcite-notice><div class="padding-10"><calcite-label><div>${this._translations.photo}<span style="color: var(--calcite-color-status-danger)">*</span></div><calcite-input type=file accept="image/*;capture=camera" @calciteInputInput=${this._onImageUpload} ${u(this._inputImageForAI)}></calcite-input></calcite-label><div class="info-container"><calcite-icon aria-hidden=true icon=information scale=s></calcite-icon><span>${t}</span></div>${e && n`<img alt=${this._translations.photo ?? y} class="width-full" src=${this._selectedImageBase64 ?? y}>` || ""}</div><div slot=footer class="upload-img-footer-container"><calcite-button width=full .disabled=${!e} id=next-btn @click=${this._analyzeImage}>${this._translations.next}</calcite-button><calcite-button width=full appearance=outline kind=brand @click=${() => this.modeChanged.emit()}>${this._translations.cancel}</calcite-button></div>`;
206
+ return o`<calcite-notice class="notice-msg" icon=effects kind=brand open><div slot=message>${this._translations.aiAssistantProcessingHint}</div></calcite-notice><div class="padding-10"><calcite-label><div>${this._translations.photo}<span style="color: var(--calcite-color-status-danger)">*</span></div><calcite-input type=file accept="image/*;capture=camera" @calciteInputInput=${this._onImageUpload} ${h(this._inputImageForAI)}></calcite-input></calcite-label><div class="info-container"><calcite-icon aria-hidden=true icon=information scale=s></calcite-icon><span>${t}</span></div>${e && o`<img alt=${this._translations.photo ?? y} class="width-full" src=${this._selectedImageBase64 ?? y}>` || ""}</div><div slot=footer class="upload-img-footer-container"><calcite-button width=full .disabled=${!e} id=next-btn @click=${this._analyzeImage}>${this._translations.next}</calcite-button><calcite-button width=full appearance=outline kind=brand @click=${() => this.modeChanged.emit()}>${this._translations.cancel}</calcite-button></div>`;
193
207
  }
194
208
  _aiTextExtractionPage() {
195
209
  const e = this._enteredMessage.trim();
196
- return n`<calcite-notice class="notice-msg" icon=effects kind=brand open><div slot=message>${this._translations.aiTextProcessingHint}</div></calcite-notice><div class="padding-10"><calcite-label><div>${this._translations.description}<span style="color: var(--calcite-color-status-danger)">*</span></div><calcite-text-area @input=${(t) => {
210
+ return o`<calcite-notice class="notice-msg" icon=effects kind=brand open><div slot=message>${this._translations.aiTextProcessingHint}</div></calcite-notice><div class="padding-10"><calcite-label><div>${this._translations.description}<span style="color: var(--calcite-color-status-danger)">*</span></div><calcite-text-area @input=${(t) => {
197
211
  this._enteredMessage = t.target.value;
198
- }} .placeholder=${this._translations.messageInputHint} resize=vertical rows=6 .value=${this._enteredMessage}></calcite-text-area></calcite-label><div class="info-container"><calcite-icon icon=information scale=s></calcite-icon><span>${this._translations.descriptionRequiredHint}</span></div></div><div slot=footer class="upload-img-footer-container"><calcite-button width=full .disabled=${!e} id=next-btn @click=${this._analyzeMessage}>${this._translations.next}</calcite-button><calcite-button width=full appearance=outline kind=brand @click=${() => this.modeChanged.emit()}>${this._translations.cancel}</calcite-button></div>`;
212
+ }} .placeholder=${this._translations.messageInputHint} resize=vertical rows=6 .value=${this._enteredMessage} ${h(this._messageTextAreaRef)}></calcite-text-area></calcite-label><div class="info-container"><calcite-icon icon=information scale=s></calcite-icon><span>${this._translations.descriptionRequiredHint}</span></div></div><div slot=footer class="upload-img-footer-container"><calcite-button width=full .disabled=${!e} id=next-btn @click=${this._analyzeMessage}>${this._translations.next}</calcite-button><calcite-button width=full appearance=outline kind=brand @click=${() => this.modeChanged.emit()}>${this._translations.cancel}</calcite-button></div>`;
199
213
  }
200
214
  _getAnalyzingImagePage() {
201
- return n`<div class="analysis-wrapper"><calcite-label layout=inline><calcite-icon class="analyzing-icon" icon=effects scale=s></calcite-icon><span>${this._translations.analyzingImage}</span></calcite-label><calcite-button class="skip-btn" appearance=transparent @click=${() => {
215
+ return o`<div class="analysis-wrapper"><calcite-label layout=inline><calcite-icon class="analyzing-icon" icon=effects scale=s></calcite-icon><span>${this._translations.analyzingImage}</span></calcite-label><calcite-button class="skip-btn" appearance=transparent @click=${() => {
202
216
  this._abortController.abort(), this._currentPage = "templatePicker";
203
217
  }}>${this._translations.skip}</calcite-button></div>`;
204
218
  }
205
219
  _getAnalyzingMessagePage() {
206
- return n`<div class="analysis-wrapper"><calcite-label layout=inline><calcite-icon class="analyzing-icon" icon=effects scale=s></calcite-icon><span>${this._translations.analyzingText}</span></calcite-label><calcite-button class="skip-btn" appearance=transparent @click=${() => {
220
+ return o`<div class="analysis-wrapper"><calcite-label layout=inline><calcite-icon class="analyzing-icon" icon=effects scale=s></calcite-icon><span>${this._translations.analyzingText}</span></calcite-label><calcite-button class="skip-btn" appearance=transparent @click=${() => {
207
221
  this._abortController.abort(), this._currentPage = "templatePicker";
208
222
  }}>${this._translations.skip}</calcite-button></div>`;
209
223
  }
@@ -225,18 +239,18 @@ class N extends E {
225
239
  }
226
240
  try {
227
241
  this._analysisMode = "image", this._currentPage = "analyzingImage", this.progressStatus.emit(45);
228
- const i = this._inputImageForAI.value.files[0], a = await new Promise((r, o) => {
242
+ const i = this._inputImageForAI.value.files[0], a = await new Promise((r, n) => {
229
243
  const l = new FileReader();
230
- l.onloadend = () => r(l.result), l.onerror = o, this._inputImageForAI.value && l.readAsDataURL(i);
244
+ l.onloadend = () => r(l.result), l.onerror = n, this._inputImageForAI.value && l.readAsDataURL(i);
231
245
  });
232
246
  if (this.enablePhotoLocation) {
233
247
  const r = await R.gps(i);
234
248
  if (r?.longitude && r.latitude && this.mapView?.spatialReference) {
235
- const o = new U({
249
+ const n = new U({
236
250
  longitude: r.longitude,
237
251
  latitude: r.latitude,
238
252
  spatialReference: new z({ wkid: 4326 })
239
- }), l = await k(o, this.mapView.spatialReference);
253
+ }), l = await L(n, this.mapView.spatialReference);
240
254
  this._aiAnalysisInfo && (this._aiAnalysisInfo.location = l);
241
255
  }
242
256
  }
@@ -245,7 +259,7 @@ class N extends E {
245
259
  const r = {
246
260
  input: a,
247
261
  data: s
248
- }, o = await b(t.imageUrl, {
262
+ }, n = await b(t.imageUrl, {
249
263
  method: "post",
250
264
  headers: {
251
265
  "Content-Type": "application/json",
@@ -256,7 +270,7 @@ class N extends E {
256
270
  responseType: "json",
257
271
  signal: e
258
272
  });
259
- this._aiAnalysisInfo && (this._aiAnalysisInfo.results = o.data.results);
273
+ this._aiAnalysisInfo && (this._aiAnalysisInfo.results = n.data.results);
260
274
  }
261
275
  this._currentPage = "loading", await this.init();
262
276
  } catch (i) {
@@ -288,8 +302,8 @@ class N extends E {
288
302
  signal: e
289
303
  });
290
304
  if (this._aiAnalysisInfo && (this._aiAnalysisInfo.results = r.data.results, s.url)) {
291
- const o = this._getExtractedAddress(r.data.results);
292
- o && (this._aiAnalysisInfo.location = await this._geocodeExtractedAddress(o, {
305
+ const n = this._getExtractedAddress(r.data.results);
306
+ n && (this._aiAnalysisInfo.location = await this._geocodeExtractedAddress(n, {
293
307
  url: s.url,
294
308
  singleLineFieldName: s.singleLineFieldName
295
309
  }));
@@ -414,24 +428,28 @@ class N extends E {
414
428
  }), await t.sketchViewModel.update(a);
415
429
  }
416
430
  _getSearchConfig(e, t) {
417
- const i = e.sources;
418
- return i && i?.length > 0 ? (i.forEach((a) => {
419
- if (a.hasOwnProperty("layer")) {
420
- const r = a, o = r.layer?.id, l = o ? t.map?.findLayerById(o) : "", d = r?.layer?.url;
421
- l ? r.layer = l : d && (r.layer = new S(d));
431
+ const i = e?.sources;
432
+ if (!i || i.length === 0)
433
+ return { ...e };
434
+ const a = i.map((s) => {
435
+ if (s.hasOwnProperty("layer")) {
436
+ const r = { ...s }, n = r.layer?.id, l = n ? t.map?.findLayerById(n) : "", p = r?.layer?.url;
437
+ return l ? r.layer = l : p && (r.layer = new F(p)), r;
422
438
  }
423
- }), i?.forEach((a) => {
424
- if (a.hasOwnProperty("locator")) {
425
- const r = a;
439
+ if (s.hasOwnProperty("locator")) {
440
+ const r = { ...s };
426
441
  if (r?.name === "ArcGIS World Geocoding Service") {
427
- const o = r.outFields || ["Addr_type", "Match_addr", "StAddr", "City"];
428
- r.outFields = o, r.singleLineFieldName = "SingleLine";
442
+ const n = r.outFields || ["Addr_type", "Match_addr", "StAddr", "City"];
443
+ r.outFields = n, r.singleLineFieldName = "SingleLine";
429
444
  }
430
- r.url = r.url, delete r.url;
445
+ return delete r.url, r;
431
446
  }
432
- })) : e = {
433
- ...e
434
- }, e;
447
+ return s;
448
+ });
449
+ return {
450
+ ...e,
451
+ sources: a
452
+ };
435
453
  }
436
454
  _updateSearchActiveSourceIndex() {
437
455
  this._searchRef.value && (this._searchRef.value.searchAllDisabled ? this._searchRef.value.activeSourceIndex = 0 : this._searchRef.value.activeSourceIndex = -1);
@@ -462,16 +480,16 @@ class N extends E {
462
480
  },
463
481
  valueExpression: s.name
464
482
  });
465
- this._updatedMapView?.map.editableLayers.forEach((o) => {
466
- const l = this.formElements.orgElements, d = this.formElements.orgExpressionInfos, m = [...l];
467
- if (m.push(r), o.type === "feature") {
468
- const g = o, h = new $({
483
+ this._updatedMapView?.map.editableLayers.forEach((n) => {
484
+ const l = this.formElements.orgElements, p = this.formElements.orgExpressionInfos, m = [...l];
485
+ if (m.push(r), n.type === "feature") {
486
+ const g = n, u = new $({
469
487
  title: g?.formTemplate?.title,
470
488
  description: g?.formTemplate?.description,
471
489
  elements: m,
472
- expressionInfos: [s].concat(d)
490
+ expressionInfos: [s].concat(p)
473
491
  });
474
- o.formTemplate = h;
492
+ n.formTemplate = u;
475
493
  }
476
494
  });
477
495
  }
@@ -12,8 +12,8 @@ class k extends b {
12
12
  const e = this._editor.value;
13
13
  e && (h.watch(() => e.state, (t) => {
14
14
  t === "adding-attachment" || t === "editing-attachment" ? (this._addingAttachment = !0, this.isActionPending.emit(!0)) : this._addingAttachment && (this.isActionPending.emit(!1), this._addingAttachment = !1);
15
- }), h.watch(() => e.activeWorkflow?.formViewModel?.state, (t) => {
16
- t === "ready" && this.formReady.emit();
15
+ }), h.watch(() => e.activeWorkflow?.formViewModel?.status, (t) => {
16
+ t === "loaded" && this.formReady.emit();
17
17
  }));
18
18
  };
19
19
  }
@@ -78,20 +78,23 @@ class k extends b {
78
78
  };
79
79
  }
80
80
  async submitted(e) {
81
- if (e.invalid.length) {
81
+ if (e.results[0]?.invalidFields.length || e.results[0]?.invalidAttachmentElementIds.length) {
82
82
  this._isSubmitBtnClicked = !1;
83
83
  return;
84
84
  }
85
- if (e.valid.length && this._isSubmitBtnClicked) {
85
+ if (this._isSubmitBtnClicked) {
86
86
  this._isSubmitBtnClicked = !1;
87
87
  try {
88
88
  if (this._editor.value?.activeWorkflow) {
89
89
  await this._editor.value.activeWorkflow.commit();
90
- const t = this._editor.value.activeWorkflow.failures;
91
- t?.length && t.some((i) => {
92
- if (i.error)
93
- throw i.error;
94
- });
90
+ const t = this._editor.value.activeWorkflow.data?.viewModel?.failures;
91
+ if (t?.length) {
92
+ t.some((i) => {
93
+ if (i.error)
94
+ throw i.error;
95
+ });
96
+ return;
97
+ }
95
98
  }
96
99
  } catch (t) {
97
100
  this.fail.emit(t);
@@ -157,7 +157,7 @@ class V extends M {
157
157
  _getPopupExpandNode() {
158
158
  const e = this._isMobile ? "height-full" : "height-full position-relative", t = this._isMobile && this._showInformationHeader ? "display-none height-0" : "", i = this.popupHeaderColor ? "" : this._isMobile ? "calcite-mode-light" : "calcite-mode-dark", a = this._isMobile && this._hideTable ? "position-absolute-0 width-full height-full" : this._isMobile ? "display-none height-0" : "", l = this._currentMapInfos?.length > 1 && this.appLayout === "tableView" ? "position-relative top-51" : "", o = this.appLayout !== "tableView" ? "position-sticky" : "";
159
159
  return s`<div class=${`${i} ${e} ${a} ${l} ${o}`} style=${T({
160
- "--calcite-color-surface-2": this.popupHeaderColor,
160
+ "--calcite-panel-header-background-color": this.popupHeaderColor,
161
161
  "--calcite-color-surface-3": this.popupHeaderHoverColor,
162
162
  "--calcite-color-text-3": this.popupHeaderTextColor,
163
163
  "--calcite-color-text-2": this.popupHeaderTextColor
@@ -169,7 +169,7 @@ class V extends M {
169
169
  this._showInformationHeader = !0;
170
170
  }} @createWorkFlowStarted=${() => {
171
171
  this.appLayout = l?.isTable ? "tableView" : "mapView", this._showInformationHeader = !1;
172
- }} @featureOrRecordSubmitted=${() => this._layerTable.value && void this._layerTable.value.refresh()} .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>`;
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
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" : "", 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;
@@ -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.filterReset();
221
+ this._mapExtentFilterChecked = !1, this._mapCard.value && this._mapCard.value.resetFilter(), this._layerTable.value && this._layerTable.value._filterActive && this._layerTable.value.filterReset();
222
222
  }
223
223
  async _closeFilter() {
224
224
  this._filterOpen && (this._filterOpen = !1, this._layerTable.value && this._layerTable.value.closeFilter());
@@ -15,7 +15,7 @@ import * as p from "@arcgis/core/core/reactiveUtils.js";
15
15
  import D from "@arcgis/core/rest/support/RelationshipQuery.js";
16
16
  import w from "@arcgis/core/widgets/FeatureTable/support/TableTemplate.js";
17
17
  const M = C`@layer{:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-surface-1)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-dialog-content-space: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-surface-2)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}calcite-action-bar{--calcite-internal-action-bar-gap: 0px;--calcite-internal-action-bar-padding: 0px}}`;
18
- class k extends A {
18
+ class V extends A {
19
19
  constructor() {
20
20
  super(), this.defaultGlobalId = [], this.defaultLayerId = "", this.defaultOid = [], this.enableAutoRefresh = !1, this.enableColumnReorder = !0, this.enableCSV = !1, this.enableInlineEdit = !1, this.enableShare = !1, this.enableTableAutosave = !0, this.featureSelectionMode = "multiple", this.selectedRelatedIds = [], this.honorMapFieldSettings = !1, this.isMobile = !1, this.mapHidden = !1, this.showOnlyUpdatableLayers = !1, this.selectedIds = [], this.shareIncludeEmbed = !1, this.shareIncludeSocial = !1, this.showNewestFirst = !1, this.zoomAndScrollToSelected = !1, this.pasteEnabled = !1, this.showCopyPasteActions = !1, this.layerIds = [], this._allIds = [], this._configLayerOrderDefined = !1, this._csvExporting = !1, this._fetchingData = !1, this._hideTable = !1, this._filterActive = !1, this._selectAllActive = !1, this._showHideOpen = !1, this._showOnlySelected = !1, this._toolInfos = [], this._translations = O({ name: "layer-table", blocking: !0 }), this._fullTextSearchInfo = [], this._searchPlaceHolder = "", this._size = 0, this._queryingData = !1, this._editEnabled = !1, this._enabledLayerIds = [], this._defaultGlobalIdHonored = !1, this._defaultOidHonored = !1, this._deleteEnabled = !1, this._floorExpression = "", this._floorField = "", this._floorLevel = "", this._loaded = !1, this._shareNode = y(), this._toolbar = y(), this._searchExpression = "", this._skipEditCheck = !1, this._tempSelectedIds = [], this._outOFExtentOids = [], this._shouldUpdateTableOnExtentChange = !0, this._creatingFeature = !1, this._searchNode = y(), this._layerEditsHandles = [], this._pastedFeaturesIds = [], this._shouldSelectCreatedFeatures = !1, this.columnReorder = o(), this.featureSelectionChange = o(), this.toggleFilter = o(), this.showDelete = o(), this.relatedRecordToggled = o(), this.editMultipleFeatures = o(), this.copyFeatures = o(), this.pasteFeatures = o(), this.featuresAdded = o(), this.initCreateComponent = o(), this.requestLayerSelectionChange = o(), this.beforeFeatureSelectionChange = o(), this.continueEditing = o(), this.createFeatureEditorInitialized = (e) => {
21
21
  this._createFeatureEditor = e.detail;
@@ -220,21 +220,21 @@ class k extends A {
220
220
  t.searchTerm = e.target.value;
221
221
  }), this._searchFullText();
222
222
  }
223
- async _searchFullText() {
224
- let e = [], t = !1;
223
+ async _searchFullText(e = !1) {
224
+ let t = [], i = !1;
225
225
  if (this._showOnlySelected)
226
- e = this._tempSelectedIds, t = !0;
227
- else if (await this._validateActiveEdits([], this.selectedIds))
226
+ t = this._tempSelectedIds, i = !0;
227
+ else if (e ? !0 : await this._validateActiveEdits([], this.selectedIds))
228
228
  this._clearSelection(), this._tempSelectedIds = [];
229
229
  else
230
230
  return;
231
231
  this._searchExpression && this._clearSearchDefinitionExpression();
232
- let i = [];
232
+ let s = [];
233
233
  if (this._fullTextSearchInfo?.length && this._fullTextSearchInfo[0].searchTerm) {
234
- const s = this._layer?.createQuery();
235
- s.fullText = this._fullTextSearchInfo, i = this._layer ? await this._layer.queryObjectIds(s) : [], t && e?.length && (i = i.filter((a) => e.includes(a))), await this._updateSearchDefinitionExpression(i?.length ? i : [-1]);
234
+ const a = this._layer?.createQuery();
235
+ a.fullText = this._fullTextSearchInfo, s = this._layer ? await this._layer.queryObjectIds(a) : [], i && t?.length && (s = s.filter((l) => t.includes(l))), await this._updateSearchDefinitionExpression(s?.length ? s : [-1]);
236
236
  }
237
- t && i?.length && (this._showOnlySelected = !0, this._table?.highlightIds.addMany(i.reverse())), await new Promise((s) => setTimeout(s, 800)), await this._updateAllIds();
237
+ i && s?.length && (this._showOnlySelected = !0, this._table?.highlightIds.addMany(s.reverse())), this._selectedLayerView ? await p.once(() => !this._selectedLayerView.updating) : await new Promise((a) => setTimeout(a, 800)), this._allIds = await this.queryAllIds(), this.selectedIds = this.selectedIds.filter((a) => this._allIds.indexOf(a) > -1), await this._refresh(!1, !0);
238
238
  }
239
239
  _clearSearchDefinitionExpression() {
240
240
  const e = this._layer?.definitionExpression;
@@ -441,7 +441,7 @@ class k extends A {
441
441
  if (this._shouldSelectCreatedFeatures) {
442
442
  await this._selectFeatures(n, i), i === f && this.featuresAdded.emit(n);
443
443
  return;
444
- } else i === f && n.length > 0 ? (this._searchExpression && (await this._refresh(!1, !0), this._clearSelection(), await this._searchFullText()), await this._refresh(!1, !0), this.initCreateComponent.emit()) : i === f && d.length > 0 && this._searchExpression && (await this._selectFeatures(d, i), await this._refresh());
444
+ } else i === f && n.length > 0 ? (this._searchExpression ? (this._clearSelection(), await this._searchFullText(!0)) : await this._refresh(!1, !0), this.initCreateComponent.emit()) : i === f && d.length > 0 && this._searchExpression && await this._selectFeatures(d, i);
445
445
  });
446
446
  a && this._layerEditsHandles.push(a);
447
447
  }
@@ -450,7 +450,7 @@ class k extends A {
450
450
  try {
451
451
  const i = this._layer?.id;
452
452
  if (t === i) {
453
- await this._refresh(!1, !0), this._clearSelection(), this._searchExpression && await this._searchFullText();
453
+ this._searchExpression ? (await this._searchFullText(!0), this._allIds = await this.queryAllIds()) : (await this._refresh(!1, !0), this._clearSelection());
454
454
  const s = [];
455
455
  for (const a of e)
456
456
  this._allIds.includes(a) && s.push(a);
@@ -952,7 +952,7 @@ class k extends A {
952
952
  }));
953
953
  }
954
954
  }
955
- E("layer-table", k);
955
+ E("layer-table", V);
956
956
  export {
957
- k as LayerTable
957
+ V as LayerTable
958
958
  };
@@ -116,7 +116,8 @@ class k extends D {
116
116
  category: V.DEPLOYMENTS,
117
117
  action: "Rename Items",
118
118
  dimensions: [
119
- this.card?.title || "",
119
+ "",
120
+ // Remove to prevent PII from being logged
120
121
  this.card?.deployCommonId || "",
121
122
  this.card?.deployVersion || "",
122
123
  this.source,
@@ -45,7 +45,8 @@ class E extends g {
45
45
  category: I.DEPLOYMENTS,
46
46
  action: "Delete Solution",
47
47
  dimensions: [
48
- this.card?.title || "",
48
+ "",
49
+ // Remove to prevent PII from being logged
49
50
  this.card?.deployCommonId || "",
50
51
  this.card?.deployVersion || "",
51
52
  this.source,
@@ -134,7 +134,8 @@ class V extends v {
134
134
  category: n.DEPLOYMENTS,
135
135
  action: "Open Help",
136
136
  dimensions: [
137
- this.card?.title || "",
137
+ "",
138
+ // Remove to prevent PII from being logged
138
139
  this.card?.deployCommonId || "",
139
140
  this.card?.deployVersion || "",
140
141
  "Details Page",
@@ -147,7 +148,8 @@ class V extends v {
147
148
  category: n.DEPLOYMENTS,
148
149
  action: "Open Item Details",
149
150
  dimensions: [
150
- this.card?.title || "",
151
+ "",
152
+ // Remove to prevent PII from being logged
151
153
  this.card?.deployCommonId || "",
152
154
  this.card?.deployVersion || "",
153
155
  "Details Page",
@@ -168,7 +170,8 @@ class V extends v {
168
170
  category: n.DEPLOYMENTS,
169
171
  action: "View Diagram",
170
172
  dimensions: [
171
- this.card?.title || "",
173
+ "",
174
+ // Remove to prevent PII from being logged
172
175
  this.card?.deployCommonId || "",
173
176
  this.card?.deployVersion || "",
174
177
  "Details Page",
@@ -208,7 +211,8 @@ class V extends v {
208
211
  category: n.DEPLOYMENTS,
209
212
  action: "View Latest Version",
210
213
  dimensions: [
211
- this.card?.title || "",
214
+ "",
215
+ // Remove to prevent PII from being logged
212
216
  this.card?.deployCommonId || "",
213
217
  this.card?.deployVersion || ""
214
218
  ]