@esri/solutions-components 5.1.0-next.137 → 5.1.0-next.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{33UAZ7BX.js → ATHNXWV4.js} +96 -96
- package/dist/cdn/{3CSMIYZV.js → CUJ3M6UT.js} +1 -1
- package/dist/cdn/FMTXVLZB.js +2 -0
- package/dist/cdn/{7MFLK6JZ.js → HNWINTTY.js} +1 -1
- package/dist/cdn/LDNPRHOM.js +2 -0
- package/dist/cdn/{SEHNIZKR.js → NN52IXXG.js} +1 -1
- package/dist/cdn/{RDAHPMNW.js → PQNFWMST.js} +1 -1
- package/dist/cdn/{4753O4WX.js → PV6MK2E6.js} +1 -1
- package/dist/cdn/{XVRJTKAB.js → QTZMCFZB.js} +22 -21
- package/dist/cdn/SRT2KXZG.js +2 -0
- package/dist/cdn/{6RHH635X.js → UFPB7JD3.js} +1 -1
- package/dist/cdn/{VFH27Y7F.js → UWSHU7MG.js} +1 -1
- package/dist/cdn/ZCPVOS4Q.js +2 -0
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-builder-assistant/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/solution-builder-assistant.js +16 -16
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +2 -0
- package/dist/components/arcgis-solutions-assistant/customElement.js +302 -275
- package/dist/components/crowdsource-manager/customElement.js +5 -5
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +15 -8
- package/dist/components/map-layer-picker/customElement.js +5 -4
- package/dist/components/map-tools/customElement.js +66 -66
- package/dist/components/solution-builder-assistant/customElement.d.ts +2 -0
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/solutions-components_commit.txt +7 -7
- package/package.json +1 -1
- package/dist/cdn/2LVPFOS7.js +0 -2
- package/dist/cdn/3RSUBJQ5.js +0 -2
- package/dist/cdn/NPYWZIAM.js +0 -2
- package/dist/cdn/WGOI2WQZ.js +0 -2
|
@@ -4,13 +4,13 @@ import { d 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
|
|
7
|
+
import { createRef as p, ref as u } from "lit-html/directives/ref.js";
|
|
8
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 =
|
|
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 = 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, "idsFound", this.idsFound), v(window);
|
|
14
14
|
}
|
|
15
15
|
static {
|
|
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, 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 };
|
|
@@ -169,8 +169,8 @@ class V extends M {
|
|
|
169
169
|
}} @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>`;
|
|
170
170
|
}
|
|
171
171
|
_getTable(e, t, i) {
|
|
172
|
-
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",
|
|
173
|
-
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=${
|
|
172
|
+
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;
|
|
173
|
+
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>`;
|
|
174
174
|
}
|
|
175
175
|
getActions(e, t) {
|
|
176
176
|
const i = this._getDividerIcon(e, t), a = t ? this._translations.close : this._translations.open, l = "toggle-layout";
|
|
@@ -228,7 +228,7 @@ class V extends M {
|
|
|
228
228
|
this._currentMapInfos = this.mapInfos, !this.enableMapList && this.defaultWebmap && (this._currentMapInfos = this.mapInfos.filter((e) => e.id === this.defaultWebmap));
|
|
229
229
|
}
|
|
230
230
|
_handleCopyPasteActions() {
|
|
231
|
-
this._layer && (this._showCopyPasteActions = this.enableCopyPaste &&
|
|
231
|
+
this._layer && (this._showCopyPasteActions = this.enableCopyPaste && !this._isMobile);
|
|
232
232
|
}
|
|
233
233
|
_toggleLayout() {
|
|
234
234
|
this._panelOpen = !this._panelOpen;
|
|
@@ -81,7 +81,7 @@ class x extends w {
|
|
|
81
81
|
return i`<calcite-shell class="z-index-1" style=${y({ position: this.position })}>${this._getHeader()}<calcite-loader class=${s(e)} .label=${this._translations.fetchingData}></calcite-loader>${this.mapView && this._getFeaturesComponent() || ""}<div class=${`${a} width-100`} slot=footer>${this.allowEditing ? i`<div class="display-flex top-border padding-1-2"><calcite-button appearance=solid id=solutions-edit @click=${() => this._openEditRecord()} width=full>${this._translations.edit}</calcite-button>${this.isMobile && d ? i`<delete-button class="padding-inline-start-1 width-100" id=solutions-delete .ids=${u} .layer=${this._layer} @editsComplete=${() => this._closePopup()}></delete-button>` : void 0}<calcite-tooltip class=${s(o)} placement=bottom reference-element=solutions-edit><span>${this._translations.edit}</span></calcite-tooltip>${this.isMobile && d ? i`<calcite-tooltip class=${s(o)} placement=bottom reference-element=solutions-delete><span>${this._translations.delete}</span></calcite-tooltip>` : void 0}</div>` : ""}${this.paginationEnabled && !l && i`<div class=${"display-flex padding-1-2 button-container top-border"}><div><calcite-button appearance=transparent .disabled=${l} icon-flip-rtl=both icon-start=chevron-left id=solutions-back @click=${() => this._back()} width=full></calcite-button><calcite-tooltip class=${s(o)} placement=top reference-element=solutions-back><span>${this._translations.back}</span></calcite-tooltip></div><calcite-action class="pagination-action" icon-flip-rtl @click=${() => this._toggleListView()} scale=s .text=${this._translations.toggleListView} text-enabled><span class="pagination-count">${this._count}</span></calcite-action><div><calcite-button appearance=transparent .disabled=${l} icon-flip-rtl=both icon-start=chevron-right id=solutions-next @click=${() => this._next()} width=full></calcite-button><calcite-tooltip class=${s(o)} placement=top reference-element=solutions-next><span>${this._translations.next}</span></calcite-tooltip></div></div>` || ""}</div><edit-card .allowMultipleEditing=${this._isMultipleEdits} class=${s(t)} .enableEditGeometry=${this.enableEditGeometry} .enableSnapping=${this.enableSnapping} .graphicIndex=${f} .graphics=${p} .mapView=${this.mapView} .open=${this._editRecordOpen}></edit-card><calcite-alert auto-close icon=layer-broken kind=warning label @calciteAlertClose=${() => this._alertClosed()} .open=${this._alertOpen} placement=top><div slot=title>${this._translations.editDisabled}</div><div slot=message>${this._translations.enableEditing}</div></calcite-alert></calcite-shell>`;
|
|
82
82
|
}
|
|
83
83
|
async setGraphics() {
|
|
84
|
-
this._features.value && (this.graphics.length > 0 ? (this._layer = this.graphics[0]?.layer, this._editEnabled = this._layer.editingEnabled && this._layer.capabilities?.operations.supportsUpdate, this._mobileTitle = this.mapView?.map && await this._popupUtils?.getPopupTitle(this.graphics[0], this.mapView.map) || "", this._features.value.open = !0, this._features.value.features = this.graphics) : (await this._features.value.clear(), await this._features.value.close()), this._count = this._getCount());
|
|
84
|
+
this._features.value && (this.graphics.length > 0 ? (this._layer = this.graphics[0]?.layer, this._editEnabled = this._layer.editingEnabled && this._layer.capabilities?.operations.supportsUpdate, this._mobileTitle = this.mapView?.map && await this._popupUtils?.getPopupTitle(this.graphics[0], this.mapView.map) || "", this._features.value && (this._features.value.open = !0), this._features.value && (this._features.value.features = this.graphics)) : (await this._features.value.clear(), await this._features.value.close()), this._count = this._getCount());
|
|
85
85
|
}
|
|
86
86
|
handleHeaderActions() {
|
|
87
87
|
this.showCopyPasteActions && this._features.value?.headerActions.length === 0 ? (this._features.value.headerActions.addMany(this._getHeaderActions()), this._headerActionsHandle && this._headerActionsHandle.remove(), this._headerActionsHandle = r.on(() => this._features.value, "arcgisTriggerAction", (e) => {
|
|
@@ -64,7 +64,7 @@ class M extends C {
|
|
|
64
64
|
this._configLayerOrderDefined = "configLayerOrder" in (this.mapInfo?.layerOptions || {}), this._enabledLayerIds = H(this.mapInfo?.layerOptions?.layers || [], this.mapInfo?.layerOptions?.configLayerOrder), this._table && (this._resetColumnTemplates(), this._sortTable(), await this._initToolInfos());
|
|
65
65
|
}
|
|
66
66
|
async mapViewWatchHandler() {
|
|
67
|
-
this._mapClickHandle && this._mapClickHandle.remove(), this.mapView && (this._floorExpression = "", this._searchExpression = "
|
|
67
|
+
this._mapClickHandle && this._mapClickHandle.remove(), this.mapView && (this._floorExpression = "", this._searchExpression = "", this.mapView.highlights = [
|
|
68
68
|
{
|
|
69
69
|
name: "default",
|
|
70
70
|
color: "#00FFFF"
|
|
@@ -135,7 +135,7 @@ class M extends C {
|
|
|
135
135
|
this._shouldUpdateTableOnExtentChange = !1, this._editor = e.detail;
|
|
136
136
|
}
|
|
137
137
|
async closeEdit() {
|
|
138
|
-
this._shouldUpdateTableOnExtentChange = !0, this._filterByExtentHandle && this._handleTableOnMapExtent();
|
|
138
|
+
this._shouldUpdateTableOnExtentChange = !0, this._filterByExtentHandle && this._handleTableOnMapExtent(), this._editor = void 0;
|
|
139
139
|
}
|
|
140
140
|
async selectionChanged(e) {
|
|
141
141
|
const t = e.detail.selectedFeature[0], i = Number(t.getObjectId()), s = this._table;
|
|
@@ -297,7 +297,7 @@ class M extends C {
|
|
|
297
297
|
_validateActiveActions() {
|
|
298
298
|
const e = ["filter", "list-check-all", "selected-items-filter"];
|
|
299
299
|
this._toolInfos?.forEach((t) => {
|
|
300
|
-
t && e.indexOf(t.icon) > -1 && (t.icon === "filter" && (t.indicator = this._filterActive), t.icon === "list-check-all" && (t.active = this._selectAllActive), t.icon === "selected-items-filter" && (t.active = this._showOnlySelected, t.label = this._showOnlySelected ? this._translations.showAll : this._translations.showSelected));
|
|
300
|
+
t && e.indexOf(t.icon) > -1 && (t.icon === "filter" && (t.indicator = this._filterActive), t.icon === "list-check-all" && (t.active = this._selectAllActive), t.icon === "selected-items-filter" && (t.active = this._showOnlySelected, t.label = this._showOnlySelected ? this._translations.showAll : this._translations.showSelected, t.toolTip = this._showOnlySelected ? this._translations.showAll : this._translations.showSelected));
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
async _initToolInfos() {
|
|
@@ -434,7 +434,15 @@ class M extends C {
|
|
|
434
434
|
if (r.length === 0)
|
|
435
435
|
return;
|
|
436
436
|
const d = this._layer?.id;
|
|
437
|
-
s.id === d
|
|
437
|
+
if (s.id === d) {
|
|
438
|
+
await this._refresh(), this._clearSelection(), this._searchExpression && await this._searchFullText();
|
|
439
|
+
const n = [];
|
|
440
|
+
for (const f of r)
|
|
441
|
+
this._allIds.includes(f) && n.push(f);
|
|
442
|
+
n.length > 0 ? this._table?.highlightIds.addMany(n) : await this._refresh(), this.featuresAdded.emit(r);
|
|
443
|
+
} else
|
|
444
|
+
this._clearSelection(), this._pastedFeaturesIds = r, this.requestLayerSelectionChange.emit(s.id);
|
|
445
|
+
this._shouldSelectFeatureAfterCreate = !1;
|
|
438
446
|
} catch (h) {
|
|
439
447
|
this._shouldSelectFeatureAfterCreate = !1, console.error("Failed processing layer edits event", { layerId: i, error: h });
|
|
440
448
|
}
|
|
@@ -577,7 +585,7 @@ class M extends C {
|
|
|
577
585
|
if (this._hasPendingEdits()) {
|
|
578
586
|
let a = !1;
|
|
579
587
|
try {
|
|
580
|
-
this._editor.
|
|
588
|
+
this._editor.activeWorkflow && await this._editor.activeWorkflow.cancel({
|
|
581
589
|
force: !1
|
|
582
590
|
});
|
|
583
591
|
} catch (l) {
|
|
@@ -593,8 +601,7 @@ class M extends C {
|
|
|
593
601
|
return this._shouldUpdateTableOnExtentChange = i, i;
|
|
594
602
|
}
|
|
595
603
|
_hasPendingEdits() {
|
|
596
|
-
|
|
597
|
-
return e || t;
|
|
604
|
+
return this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;
|
|
598
605
|
}
|
|
599
606
|
_finishOnChange() {
|
|
600
607
|
this._showOnlySelected && !this._relatedFeatureTable && (this._table && this._getSelectedIds().length > 0 ? this._table.filterBySelectionEnabled = !0 : this._toggleShowSelected());
|
|
@@ -902,7 +909,7 @@ class M extends C {
|
|
|
902
909
|
let e = this._getLayerOption(this._layer?.id || ""), t = this.hasAttachmentsEnabled(this._layer), i = !0;
|
|
903
910
|
const s = "attachments", a = (e?.extraFields || []).reduce((h, r) => (r.startsWith("related:") ? h.related.push(r.split("related:")[1]) : h.extra.push(r), h), { related: [], extra: [] }), l = a.extra.some((h) => h.toLowerCase() === s);
|
|
904
911
|
a && (t = l && t, i = a.related.length > 0, this._table?.columns.forEach((h) => {
|
|
905
|
-
h.fieldName.startsWith("EsriFeatureTableRelationshipColumn") && (h.hidden = !a.related.
|
|
912
|
+
h.fieldName.startsWith("EsriFeatureTableRelationshipColumn") && (h.hidden = !a.related.some((r) => r.toLowerCase() === (h.effectiveLabel || "").toLowerCase())), h.fieldName.startsWith("EsriFeatureTableAttachmentsColumn") && (h.hidden = !a.extra.some((r) => r.toLowerCase() === h.effectiveLabel.toLowerCase()));
|
|
906
913
|
})), this._table.relatedRecordsEnabled = i, this._table.attachmentsEnabled = t;
|
|
907
914
|
}
|
|
908
915
|
getFieldLabel(e, t) {
|
|
@@ -53,7 +53,8 @@ class $ extends g {
|
|
|
53
53
|
await this._setSelectedLayer(this.ids[0]);
|
|
54
54
|
}
|
|
55
55
|
async mapChanged(e) {
|
|
56
|
-
|
|
56
|
+
const t = e.detail.isValid;
|
|
57
|
+
t && !this._hasValidLayers ? await this.load() : t || (this._hasValidLayers = !1, this.noLayersFound.emit());
|
|
57
58
|
}
|
|
58
59
|
async requestLayerSelectionChange(e) {
|
|
59
60
|
const t = e.detail;
|
|
@@ -111,10 +112,10 @@ class $ extends g {
|
|
|
111
112
|
return this.ids.reduce((e, t) => (this._validLayer(t) ? e.push(this._getItem(t, "layer")) : this._validTable(t) && e.push(this._getItem(t, "table")), e), []);
|
|
112
113
|
}
|
|
113
114
|
_getItem(e, t) {
|
|
114
|
-
const s = t === "layer" && this._layerNameHash ? this._layerNameHash[e] : this._tableNameHash ? this._tableNameHash[e] : void 0, a = this.showOnlyUpdatableLayers ? s && !s.supportsUpdate : !1,
|
|
115
|
-
return this.type === "combobox" ? i`<calcite-combobox-item .disabled=${a} .heading=${
|
|
115
|
+
const s = t === "layer" && this._layerNameHash ? this._layerNameHash[e] : this._tableNameHash ? this._tableNameHash[e] : void 0, a = this.showOnlyUpdatableLayers ? s && !s.supportsUpdate : !1, h = s?.name || "", r = this.selectedIds.indexOf(e) > -1;
|
|
116
|
+
return this.type === "combobox" ? i`<calcite-combobox-item .disabled=${a} .heading=${h} .selected=${r} .value=${e}></calcite-combobox-item>` : this.type === "select" ? i`<calcite-option .disabled=${a} .label=${h} .selected=${r} .value=${e}></calcite-option>` : this.force && r || !this.force ? i`<calcite-dropdown-group class=${p(a ? "disabled" : "")} id=${h ?? l} .selectionMode=${a ? "none" : "single"}><calcite-dropdown-item .disabled=${!!(t === "table" && this.showTablesDisabled)} .iconStart=${t} @click=${a ? void 0 : () => {
|
|
116
117
|
this._setSelectedLayer(e);
|
|
117
|
-
}} .selected=${
|
|
118
|
+
}} .selected=${r}>${h}</calcite-dropdown-item></calcite-dropdown-group>` : null;
|
|
118
119
|
}
|
|
119
120
|
async _setSelectedLayer(e) {
|
|
120
121
|
if (e !== this.selectedIds[0]) {
|
|
@@ -15,57 +15,57 @@ class x extends L {
|
|
|
15
15
|
static {
|
|
16
16
|
this.styles = $;
|
|
17
17
|
}
|
|
18
|
-
willUpdate(
|
|
19
|
-
|
|
18
|
+
willUpdate(t) {
|
|
19
|
+
t.has("mapView") && this.mapViewWatchHandler(), t.has("parentComponentWidth") && this.parentComponentWidth && this.parentComponentWidthWatchHandler(this.parentComponentWidth), t.has("_showBasemapWidget") && (this.hasUpdated || this._showBasemapWidget !== !1) && this._showBasemapWidgetWatchHandler(this._showBasemapWidget), t.has("_showLayersListWidget") && (this.hasUpdated || this._showLayersListWidget !== !1) && this._showLayersListWidgetWatchHandler(this._showLayersListWidget), t.has("_showFloorFilter") && (this.hasUpdated || this._showFloorFilter !== !1) && this._showFloorFilterWatchHandler(this._showFloorFilter), t.has("_showLegendWidget") && (this.hasUpdated || this._showLegendWidget !== !1) && this._showLegendWidgetWatchHandler(this._showLegendWidget), t.has("_showSearchWidget") && (this.hasUpdated || this._showSearchWidget !== !1) && this._showSearchWidgetWatchHandler(this._showSearchWidget);
|
|
20
20
|
}
|
|
21
21
|
async mapViewWatchHandler() {
|
|
22
22
|
await this.mapView?.when(() => {
|
|
23
23
|
this.enableHome && this._initHome(), this.parentComponentWidth && this._updateTools(this.parentComponentWidth);
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
|
-
async parentComponentWidthWatchHandler(
|
|
27
|
-
this._updateTools(
|
|
26
|
+
async parentComponentWidthWatchHandler(t) {
|
|
27
|
+
this._updateTools(t);
|
|
28
28
|
}
|
|
29
|
-
async _showBasemapWidgetWatchHandler(
|
|
30
|
-
const
|
|
31
|
-
|
|
29
|
+
async _showBasemapWidgetWatchHandler(t) {
|
|
30
|
+
const e = this._basemapElement.value ? this._basemapElement.value.basemapGalleryRef.value : void 0, s = document.dir === "rtl" ? "rtl" : "ltr";
|
|
31
|
+
e && (t ? (this.mapView?.ui.add(e, {
|
|
32
32
|
position: this.position,
|
|
33
33
|
index: 1
|
|
34
|
-
}),
|
|
34
|
+
}), e.style.setProperty("direction", s), e.style.setProperty("max-height", "240px")) : this.mapView?.ui.remove(e));
|
|
35
35
|
}
|
|
36
|
-
async _showLayersListWidgetWatchHandler(
|
|
37
|
-
const
|
|
38
|
-
|
|
36
|
+
async _showLayersListWidgetWatchHandler(t) {
|
|
37
|
+
const e = this._layerListWidgetElement.value ? this._layerListWidgetElement.value.layerListRef.value : void 0, s = document.dir === "rtl" ? "rtl" : "ltr";
|
|
38
|
+
e && (t ? (this.mapView?.ui.add(e, {
|
|
39
39
|
position: this.position,
|
|
40
40
|
index: 1
|
|
41
|
-
}),
|
|
41
|
+
}), e.style.setProperty("direction", s), e.style.setProperty("max-height", "240px")) : this.mapView?.ui.remove(e));
|
|
42
42
|
}
|
|
43
|
-
async _showFloorFilterWatchHandler(
|
|
44
|
-
const
|
|
45
|
-
|
|
43
|
+
async _showFloorFilterWatchHandler(t) {
|
|
44
|
+
const e = this._floorFilterElement.value ? this._floorFilterElement.value.floorFilterRef.value : void 0, s = document.dir === "rtl" ? "rtl" : "ltr";
|
|
45
|
+
e && (t ? (this.mapView?.ui.add(e, {
|
|
46
46
|
position: this.position,
|
|
47
47
|
index: 1
|
|
48
|
-
}),
|
|
48
|
+
}), e.style.setProperty("direction", s), e.style.setProperty("max-height", "240px")) : this.mapView?.ui.remove(e));
|
|
49
49
|
}
|
|
50
|
-
async _showLegendWidgetWatchHandler(
|
|
51
|
-
const
|
|
52
|
-
|
|
50
|
+
async _showLegendWidgetWatchHandler(t) {
|
|
51
|
+
const e = this._legendElement.value ? this._legendElement.value.legendRef.value : void 0, s = document.dir === "rtl" ? "rtl" : "ltr";
|
|
52
|
+
e && (t ? (this.mapView?.ui.add(e, {
|
|
53
53
|
position: this.position,
|
|
54
54
|
index: 1
|
|
55
|
-
}),
|
|
55
|
+
}), e.style.setProperty("direction", s), e.style.setProperty("max-height", "240px")) : this.mapView?.ui.remove(e));
|
|
56
56
|
}
|
|
57
|
-
async _showSearchWidgetWatchHandler(
|
|
58
|
-
const
|
|
59
|
-
|
|
57
|
+
async _showSearchWidgetWatchHandler(t) {
|
|
58
|
+
const e = this._searchElement.value ? this._searchElement.value.searchComponent.value : void 0, s = document.dir === "rtl" ? "rtl" : "ltr";
|
|
59
|
+
e && (t ? (this.mapView?.ui.add(e, {
|
|
60
60
|
position: this.position,
|
|
61
61
|
index: 1
|
|
62
|
-
}),
|
|
62
|
+
}), e.style.setProperty("direction", s), e.style.setProperty("max-height", "240px")) : this.mapView?.ui.remove(e));
|
|
63
63
|
}
|
|
64
|
-
async mapChanged(
|
|
65
|
-
const
|
|
66
|
-
this._isValidWebMap =
|
|
64
|
+
async mapChanged(t) {
|
|
65
|
+
const e = t.detail.isValid;
|
|
66
|
+
this._isValidWebMap = e, this._showTools || this._toggleTools();
|
|
67
67
|
}
|
|
68
|
-
async _layerSelectionChange(
|
|
68
|
+
async _layerSelectionChange(t) {
|
|
69
69
|
this._showTools || this._toggleTools();
|
|
70
70
|
}
|
|
71
71
|
async load() {
|
|
@@ -73,8 +73,8 @@ class x extends L {
|
|
|
73
73
|
}
|
|
74
74
|
render() {
|
|
75
75
|
this._setZoomToolsSize();
|
|
76
|
-
const
|
|
77
|
-
return h`<div class=${`${f} ${
|
|
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 h`<div class=${`${f} ${t} height-0`}>${this.enableSingleExpand ? h`<div class=${n(m)}>${this._getActionGroup(e, !1, g || "", () => this._toggleTools())}</div>` : void 0}<div class=${`${u} ${m} ${s}`}>${this._getMapWidgets(b)}</div><div><div class=${n(y)}>${this._getActionGroup("ellipsis", !1, "", () => this._toggleEllipsisTools())}<div class=${n(i)}>${this._getMapWidgets(this._ellipsisTools)}</div></div></div></div><map-basemap-gallery .basemapConfig=${this.basemapConfig} class=${n(o)} .mapView=${this.mapView} ${r(this._basemapElement)}></map-basemap-gallery><map-search class=${n(l)} .mapView=${this.mapView} result-graphic-enabled .searchConfiguration=${this.searchConfiguration} ${r(this._searchElement)}></map-search><map-legend class=${n(c)} .mapView=${this.mapView} ${r(this._legendElement)}></map-legend><layer-list-widget class=${n(d)} .mapView=${this.mapView} .visibilityIcon=${this.visibilityIcon} ${r(this._layerListWidgetElement)}></layer-list-widget><map-floor-filter class=${n(p)} .enabled=${this.enableFloorFilter} .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 && h`<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 && h`<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
|
}
|
|
@@ -82,38 +82,38 @@ class x extends L {
|
|
|
82
82
|
this.enableHome && (this._homeComponent = document.createElement("arcgis-home"), this._homeComponent.view = this.mapView, this._homeComponent.viewpoint = this.mapView?.viewpoint?.clone());
|
|
83
83
|
}
|
|
84
84
|
_setZoomToolsSize() {
|
|
85
|
-
const e = document.getElementById("arcgis-map");
|
|
86
|
-
if (
|
|
85
|
+
const e = document.getElementById("arcgis-map")?.shadowRoot;
|
|
86
|
+
if (!e)
|
|
87
87
|
return;
|
|
88
|
-
const s = e.
|
|
89
|
-
if (
|
|
88
|
+
const s = e.querySelector(".esri-zoom"), i = e.querySelectorAll(".esri-widget--button")[0], l = e.querySelectorAll(".esri-widget--button")[1];
|
|
89
|
+
if (i && l) {
|
|
90
90
|
const o = this.zoomToolsSize === "s" ? "32px" : this.zoomToolsSize === "m" ? "40px" : "48px";
|
|
91
|
-
|
|
91
|
+
i.style.width = o, i.style.height = o, l.style.width = o, l.style.height = o;
|
|
92
92
|
}
|
|
93
93
|
if (this.layout === "horizontal") {
|
|
94
|
-
const o = document.dir || "ltr",
|
|
95
|
-
let
|
|
96
|
-
e.
|
|
94
|
+
const o = document.dir || "ltr", c = o === "ltr" ? ".esri-ui-top-left" : ".esri-ui-top-right", p = o === "ltr" ? 0 : this.parentComponentWidth - 62;
|
|
95
|
+
let d = o === "ltr" ? this._showTools ? "ltr" : "rtl" : this._showTools ? "rtl" : "ltr";
|
|
96
|
+
e.querySelector(c)?.firstElementChild?.tagName === "MAP-TOOLS" && !this._showTools && (d = o), s && s.setAttribute("style", `position: absolute; top: 50px; left: ${p}px`), this._showSelectionTools || e.querySelector(c)?.setAttribute("style", `flex-direction: row; gap: 5px; align-items: flex-start; direction: ${d} !important; z-index: 1;`);
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
_getToggleIcon() {
|
|
100
|
-
const
|
|
101
|
-
return this.layout === "horizontal" ?
|
|
100
|
+
const t = document.dir || "ltr";
|
|
101
|
+
return this.layout === "horizontal" ? t === "ltr" ? this._showTools ? "chevrons-left" : "chevrons-right" : this._showTools ? "chevrons-right" : "chevrons-left" : this._showTools ? "chevrons-up" : "chevrons-down";
|
|
102
102
|
}
|
|
103
|
-
_updateTools(
|
|
104
|
-
const
|
|
103
|
+
_updateTools(t) {
|
|
104
|
+
const e = this._showSelectionTools ? JSON.parse(JSON.stringify(this.selectionTools)) : JSON.parse(JSON.stringify(this.toolOrder));
|
|
105
105
|
this._hasFloorInfo = this.mapView?.map?.floorInfo;
|
|
106
|
-
const s =
|
|
107
|
-
s > -1 && !this._hasFloorInfo &&
|
|
106
|
+
const s = e.indexOf("floorfilter");
|
|
107
|
+
s > -1 && !this._hasFloorInfo && e.splice(s, 1);
|
|
108
108
|
const i = this.mapWidgetsSize === "s" ? 32 : this.mapWidgetsSize === "m" ? 40 : 48;
|
|
109
|
-
let
|
|
110
|
-
this.isMobile && (this.enableMapPicker || this.enableMapLayerPicker) && (
|
|
111
|
-
const
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
_getMapWidgets(
|
|
115
|
-
const
|
|
116
|
-
return
|
|
109
|
+
let l = 110;
|
|
110
|
+
this.isMobile && (this.enableMapPicker || this.enableMapLayerPicker) && (l = 160);
|
|
111
|
+
const o = Math.ceil((t - l) / i) - 1;
|
|
112
|
+
o && o !== e.length - 1 ? (this._mapTools = e.slice(0, o), this._ellipsisTools = e.slice(o, e.length)) : (this._mapTools = e, this._ellipsisTools = []);
|
|
113
|
+
}
|
|
114
|
+
_getMapWidgets(t) {
|
|
115
|
+
const e = this._isValidWebMap ? "map" : "exclamation-mark-triangle", s = this.selectedLayer === void 0 ? "exclamation-mark-triangle" : "layers";
|
|
116
|
+
return t.map((i) => {
|
|
117
117
|
switch (i) {
|
|
118
118
|
case "legend":
|
|
119
119
|
return this.enableLegend && this.enableSingleExpand ? this._getActionGroup("legend", !1, this._translations.legend, () => this._showLegend()) : this.enableLegend ? this._getWidget(i, this._legendElement.value?.legendRef.value, !0) : void 0;
|
|
@@ -152,7 +152,7 @@ class x extends L {
|
|
|
152
152
|
this._homeComponent?.go();
|
|
153
153
|
}) : void 0;
|
|
154
154
|
case "map-picker":
|
|
155
|
-
return this.enableMapPicker ? this._getActionGroup(
|
|
155
|
+
return this.enableMapPicker ? this._getActionGroup(e, !1, "", () => {
|
|
156
156
|
}, !this._isValidWebMap) : void 0;
|
|
157
157
|
case "map-layer-picker":
|
|
158
158
|
return this.enableMapLayerPicker && this._isValidWebMap ? this._getActionGroup(s, !1, "", () => {
|
|
@@ -165,19 +165,19 @@ class x extends L {
|
|
|
165
165
|
_getFullScreenComponent() {
|
|
166
166
|
return h`<map-fullscreen .mapView=${this.mapView}></map-fullscreen>`;
|
|
167
167
|
}
|
|
168
|
-
_getActionGroup(
|
|
169
|
-
const
|
|
170
|
-
return h`<div class="height-fit-content"><calcite-action alignment=center .indicator=${
|
|
168
|
+
_getActionGroup(t, e, s, i, l, o) {
|
|
169
|
+
const c = this.mapWidgetsSize === "s" ? "square-32" : this.mapWidgetsSize === "m" ? "square-40" : "square-48", p = this.stackTools ? "" : "margin-bottom-1-2", d = this.stackTools ? "" : "box-shadow";
|
|
170
|
+
return h`<div class="height-fit-content"><calcite-action alignment=center .indicator=${o} class=${`map-actions ${c} ${p} border-bottom ${d} ${l ? "danger-icon-color" : ""}`} .disabled=${e} .icon=${t} id=${t ?? _} @click=${i} scale=m .text=${s} ${r(this._mapTool)}><calcite-icon aria-hidden=true icon=chevron-up scale=s slot=icon></calcite-icon></calcite-action>${!this.isMobile && s && h`<calcite-tooltip .placement=${this.layout === "vertical" ? "auto" : "bottom"} reference-element=${t ?? _}><span>${s}</span></calcite-tooltip>` || ""}</div>`;
|
|
171
171
|
}
|
|
172
|
-
_getWidget(
|
|
173
|
-
if (this._widgets.indexOf(
|
|
174
|
-
const i = this.toolOrder.indexOf(
|
|
175
|
-
|
|
176
|
-
const
|
|
177
|
-
this.mapView.ui.add(s ?
|
|
172
|
+
_getWidget(t, e, s) {
|
|
173
|
+
if (this._widgets.indexOf(t) < 0 && this.mapView && e) {
|
|
174
|
+
const i = this.toolOrder.indexOf(t), l = document.createElement("arcgis-expand");
|
|
175
|
+
l.view = this.mapView, l.appendChild(e);
|
|
176
|
+
const o = this.enableHome ? 2 : 1;
|
|
177
|
+
this.mapView.ui.add(s ? l : e, {
|
|
178
178
|
position: this.position,
|
|
179
|
-
index: i > -1 ? i +
|
|
180
|
-
}), this._widgets.push(
|
|
179
|
+
index: i > -1 ? i + o : 1
|
|
180
|
+
}), this._widgets.push(t);
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
_showLegend() {
|
|
@@ -198,8 +198,8 @@ class x extends L {
|
|
|
198
198
|
_onSelectionToolClick() {
|
|
199
199
|
this._showSelectionTools = !this._showSelectionTools, this._showTools = !1, this._toggleEllipsisTools();
|
|
200
200
|
}
|
|
201
|
-
_toggleSelectionTool(
|
|
202
|
-
|
|
201
|
+
_toggleSelectionTool(t) {
|
|
202
|
+
t === "rectangle" ? (this._lassoSelectionToolActive = !1, this._rectangleSelectionToolActive = !this._rectangleSelectionToolActive) : t === "freehandPolygon" && (this._rectangleSelectionToolActive = !1, this._lassoSelectionToolActive = !this._lassoSelectionToolActive), this._selectionToolElement.value?.toggleSelectionTool(t, this._rectangleSelectionToolActive || this._lassoSelectionToolActive);
|
|
203
203
|
}
|
|
204
204
|
_toggleTools() {
|
|
205
205
|
this._showTools || (this._showSelectionTools = !1, this._showBasemapWidget = !1, this._showLayersListWidget = !1, this._showSearchWidget = !1, this._showLegendWidget = !1, this._showFloorFilter = !1), this._rectangleSelectionToolActive ? this._toggleSelectionTool("rectangle") : this._lassoSelectionToolActive && this._toggleSelectionTool("freehandPolygon"), this._showTools = !this._showTools, this._toggleEllipsisTools(), this._updateTools(this.parentComponentWidth);
|
|
@@ -105,6 +105,7 @@ export abstract class SolutionBuilderAssistant extends LitElement {
|
|
|
105
105
|
deleteFields: string;
|
|
106
106
|
requiredFieldsCannotBeDeleted: string;
|
|
107
107
|
delete: string;
|
|
108
|
+
deleteField: string;
|
|
108
109
|
stringType: string;
|
|
109
110
|
integerType: string;
|
|
110
111
|
doubleType: string;
|
|
@@ -258,6 +259,7 @@ export abstract class SolutionBuilderAssistant extends LitElement {
|
|
|
258
259
|
deleteFields: string;
|
|
259
260
|
requiredFieldsCannotBeDeleted: string;
|
|
260
261
|
delete: string;
|
|
262
|
+
deleteField: string;
|
|
261
263
|
stringType: string;
|
|
262
264
|
integerType: string;
|
|
263
265
|
doubleType: string;
|