@esri/solutions-components 5.1.2 → 5.1.4
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/{LSMP2ZCO.js → 2EUQOQY3.js} +1 -1
- package/dist/cdn/{ZXGNDW3R.js → 2FC35CH6.js} +1 -1
- package/dist/cdn/{NVNB4L52.js → 2MIHHSV7.js} +1 -1
- package/dist/cdn/{Z6CZ7GFZ.js → 2N37BZ4E.js} +1 -1
- package/dist/cdn/2WPU2KT4.js +2 -0
- package/dist/cdn/{LRGW6G5E.js → 2XTZLJ5F.js} +1 -1
- package/dist/cdn/{CVNW2AU2.js → 3254TLMD.js} +1 -1
- package/dist/cdn/{SD3DV4KO.js → 37XAYW3Z.js} +1 -1
- package/dist/cdn/{LQFA6HOT.js → 3DFMPPUD.js} +1 -1
- package/dist/cdn/{DQJ36YEL.js → 3I3KEFHZ.js} +1 -1
- package/dist/cdn/{DEVAXAP7.js → 3RBIHT6V.js} +1 -1
- package/dist/cdn/{GWIC6C6P.js → 44AKLIIM.js} +1 -1
- package/dist/cdn/{PSM4UX7K.js → 4IC54M4H.js} +1 -1
- package/dist/cdn/{GHVPHEOH.js → 5BRYPQAD.js} +1 -1
- package/dist/cdn/{L6XSVTY3.js → 5L7HZJBG.js} +1 -1
- package/dist/cdn/{EHIUCEAX.js → 5LBPBZXP.js} +1 -1
- package/dist/cdn/{JF2ASXUT.js → 6AVCTQ6J.js} +1 -1
- package/dist/cdn/{6OKLCUSH.js → 6OLOFYVJ.js} +1 -1
- package/dist/cdn/{CVKCFLNY.js → 6TXK3KEU.js} +1 -1
- package/dist/cdn/{74Z5A6E2.js → 6U5LXE7U.js} +1 -1
- package/dist/cdn/{YHF3Q7QB.js → 6UFOKMNB.js} +1 -1
- package/dist/cdn/{IVMHEGLY.js → 6UVMG6O6.js} +1 -1
- package/dist/cdn/{GRVDJVOF.js → 7GVXGILS.js} +1 -1
- package/dist/cdn/{RPL5Q7IL.js → 7IKNLW73.js} +1 -1
- package/dist/cdn/AO7XKW2U.js +4 -0
- package/dist/cdn/{BZWJ3KFS.js → ATEM3GJU.js} +104 -104
- package/dist/cdn/{AS7PVOU3.js → AZOSLWYH.js} +1 -1
- package/dist/cdn/{7XPOQHB4.js → B23WYSJV.js} +1 -1
- package/dist/cdn/{LSDYUCCZ.js → B2ORGYXT.js} +1 -1
- package/dist/cdn/{65OXHGCN.js → BANY6ETR.js} +1 -1
- package/dist/cdn/{BWNEUQZZ.js → BDAY2SRY.js} +1 -1
- package/dist/cdn/{P2FSR5OV.js → BKVQ3IHI.js} +1 -1
- package/dist/cdn/{XIUYVZYL.js → BNBBHCXL.js} +1 -1
- package/dist/cdn/{O6IGMQN7.js → BOQUQFNT.js} +1 -1
- package/dist/cdn/{LKVPVQIC.js → BTOTDVAS.js} +1 -1
- package/dist/cdn/{V24CDHGH.js → CAXEJ55N.js} +1 -1
- package/dist/cdn/{E5YZOOW3.js → CIHBT3OX.js} +1 -1
- package/dist/cdn/{ZHVO477V.js → CNSPJ2EC.js} +1 -1
- package/dist/cdn/{CRTJERAB.js → D7VJTHDK.js} +1 -1
- package/dist/cdn/{DXI5HEQM.js → DCW5HGF5.js} +1 -1
- package/dist/cdn/{HOSSEVH5.js → DDUV67TU.js} +1 -1
- package/dist/cdn/{EJRV6YWD.js → DKFIPJDR.js} +1 -1
- package/dist/cdn/{VSRNGZ43.js → E6FH6VES.js} +1 -1
- package/dist/cdn/{5FW45CM6.js → EJK7PYN5.js} +1 -1
- package/dist/cdn/{OPWMEQVM.js → EJPQED7E.js} +2 -2
- package/dist/cdn/{5IO4VX4R.js → EKX2WVH2.js} +1 -1
- package/dist/cdn/{RAL6IXW5.js → ELYRONBX.js} +1 -1
- package/dist/cdn/{B7CVHLVL.js → F46RK2J3.js} +1 -1
- package/dist/cdn/{MZ5XI2CY.js → F6H43GFC.js} +1 -1
- package/dist/cdn/{ECUD4NU6.js → FAHLQLKD.js} +1 -1
- package/dist/cdn/{QMQAQSIA.js → FKQHOE2A.js} +1 -1
- package/dist/cdn/{6F6YFDOY.js → FOYNK4SB.js} +1 -1
- package/dist/cdn/{KPEPW4QL.js → FPBZRT3J.js} +1 -1
- package/dist/cdn/{3CSSTWYC.js → G5MS44YY.js} +1 -1
- package/dist/cdn/{QODVIACF.js → GCDVJH5S.js} +1 -1
- package/dist/cdn/{3NI2BJYO.js → GZQHLOSR.js} +1 -1
- package/dist/cdn/{KB7CXY4N.js → HA5UBO4F.js} +1 -1
- package/dist/cdn/{4RH7N22O.js → HCUAJO3O.js} +1 -1
- package/dist/cdn/{65I4AUS4.js → HKURBCD6.js} +1 -1
- package/dist/cdn/{XA6ZDTKA.js → HSZJX2Q4.js} +1 -1
- package/dist/cdn/{GSLDFLWZ.js → HXCNKN3S.js} +1 -1
- package/dist/cdn/{C3SIGIJC.js → IATGWFGP.js} +1 -1
- package/dist/cdn/{Y2KRCLNN.js → IDF2I3MN.js} +1 -1
- package/dist/cdn/{JB5XLSNA.js → IK3L2OC3.js} +1 -1
- package/dist/cdn/{NJSQ3NUT.js → IPJJSTZU.js} +1 -1
- package/dist/cdn/{SQEPSAKG.js → ISSIJKKQ.js} +1 -1
- package/dist/cdn/{QVD3AXIP.js → IVPBAGUF.js} +1 -1
- package/dist/cdn/{Y7Z6LFBH.js → IXSDSBUI.js} +1 -1
- package/dist/cdn/{XXRBPKMI.js → J5Q7IGCO.js} +1 -1
- package/dist/cdn/{KMY4AVEA.js → J6PFJWXU.js} +1 -1
- package/dist/cdn/{UILBHLN7.js → JB5Q4OQ3.js} +1 -1
- package/dist/cdn/{QTCXH2O3.js → JBBUAR3W.js} +1 -1
- package/dist/cdn/{LK6WQCXQ.js → JCNPJDTU.js} +1 -1
- package/dist/cdn/{YBJ6AHAG.js → JJC3L6OY.js} +1 -1
- package/dist/cdn/{BSIPKI63.js → JNQB7T54.js} +1 -1
- package/dist/cdn/{J7DTCWOP.js → JX7BWUKD.js} +1 -1
- package/dist/cdn/{6KBY56R4.js → JXRHNAZL.js} +1 -1
- package/dist/cdn/{MXPZF4RB.js → KGXEY5HR.js} +1 -1
- package/dist/cdn/{LCDURBN6.js → KIF46SPD.js} +1 -1
- package/dist/cdn/{5F6WBFDO.js → KSVHFBIC.js} +1 -1
- package/dist/cdn/{FDNEF4QD.js → KU2QSXAD.js} +1 -1
- package/dist/cdn/{7NQYBMRX.js → LWPJ3YGN.js} +1 -1
- package/dist/cdn/{Q5N7I65T.js → M43XW3ID.js} +1 -1
- package/dist/cdn/{LXJI7FYN.js → MDHAIKSW.js} +1 -1
- package/dist/cdn/{CKPQTIAF.js → MHMP2XKO.js} +1 -1
- package/dist/cdn/{BFFHQBDI.js → MO3P37S4.js} +1 -1
- package/dist/cdn/N4MCHYQT.js +2 -0
- package/dist/cdn/{6L6JOGWD.js → N7CCVVIF.js} +1 -1
- package/dist/cdn/{MVSQRD5M.js → NAZXHTIH.js} +1 -1
- package/dist/cdn/{DF2U7HIU.js → NM5TPOWT.js} +1 -1
- package/dist/cdn/{INFZEU32.js → NNFMXYPK.js} +1 -1
- package/dist/cdn/P364VUYG.js +351 -0
- package/dist/cdn/{WVCL5OUK.js → PM3JQSRI.js} +1 -1
- package/dist/cdn/{3DNEBMT3.js → PRYFDRHL.js} +1 -1
- package/dist/cdn/{DLV7AZZ6.js → QEITYICZ.js} +1 -1
- package/dist/cdn/{3KYCZII7.js → QFMV5FIH.js} +1 -1
- package/dist/cdn/{KLZWOBGK.js → QVDDWNQD.js} +1 -1
- package/dist/cdn/{O6HS2AMH.js → RCCNBRKL.js} +1 -1
- package/dist/cdn/{ZSATEDPE.js → RKVNFHFD.js} +1 -1
- package/dist/cdn/{EX4K4RKP.js → RPVFPXRS.js} +1 -1
- package/dist/cdn/{XYAVR2MM.js → SGWJLKO4.js} +1 -1
- package/dist/cdn/{7AHZBLTM.js → SHH2SZMK.js} +1 -1
- package/dist/cdn/{BKIKLE4Z.js → SI2EHJJ5.js} +1 -1
- package/dist/cdn/{NWOPIQFN.js → STT65ICR.js} +1 -1
- package/dist/cdn/{WRMREY3V.js → SY6G2BJJ.js} +1 -1
- package/dist/cdn/{OVAQRVFG.js → SZOVVQKR.js} +1 -1
- package/dist/cdn/{EBDDUQNC.js → SZS6HTVV.js} +1 -1
- package/dist/cdn/{RQVXDCWL.js → T6LB222K.js} +1 -1
- package/dist/cdn/{3FIRDPVD.js → TBXAQ6YS.js} +1 -1
- package/dist/cdn/{UDWEFNJE.js → TWQBX23F.js} +1 -1
- package/dist/cdn/{MVXK7UGO.js → TXO47END.js} +1 -1
- package/dist/cdn/{5Q64VY2E.js → UCHXRVI7.js} +1 -1
- package/dist/cdn/{PQVA7SKB.js → UE2HAEBW.js} +1 -1
- package/dist/cdn/{NIUKLQOT.js → UEROFURZ.js} +1 -1
- package/dist/cdn/{T7O4WZGU.js → ULDTR3ZJ.js} +1 -1
- package/dist/cdn/{CC7JGR5Q.js → UO7BW66X.js} +1 -1
- package/dist/cdn/{WNYAZ4ME.js → VEHKPB2T.js} +1 -1
- package/dist/cdn/{RJLEYL7O.js → VESIRJGO.js} +1 -1
- package/dist/cdn/{E3O6DPAL.js → VIDMRGST.js} +1 -1
- package/dist/cdn/{RNNEZRGA.js → VLP6VQEG.js} +1 -1
- package/dist/cdn/{FSFVH74N.js → VRNFQILE.js} +1 -1
- package/dist/cdn/{7EJXZVSX.js → WD2PX7HI.js} +1 -1
- package/dist/cdn/{6RQBPR56.js → WJZWNDP6.js} +1 -1
- package/dist/cdn/WWV4AGZ6.js +2 -0
- package/dist/cdn/{4MAH5ULJ.js → X7GGOH2R.js} +1 -1
- package/dist/cdn/{SAVDBHDE.js → XL66TA6C.js} +1 -1
- package/dist/cdn/{KPKJ2OVD.js → XN5455P6.js} +1 -1
- package/dist/cdn/{TK5EXRZL.js → XOPNEAS5.js} +1 -1
- package/dist/cdn/{C2GWD5VP.js → XPAPUNHH.js} +1 -1
- package/dist/cdn/{YVNBCXBJ.js → XR3PT7FP.js} +1 -1
- package/dist/cdn/{LOSU3FPH.js → XSJOQTEM.js} +1 -1
- package/dist/cdn/{ZB5UCRCG.js → XTHPWGYU.js} +1 -1
- package/dist/cdn/{GSI62QHB.js → Y73BJ3I2.js} +1 -1
- package/dist/cdn/{HQFL3NGM.js → Z36KRE25.js} +1 -1
- package/dist/cdn/{LFIP5DV3.js → ZMHQCYGN.js} +1 -1
- package/dist/cdn/{Q6CXYCV6.js → ZOGD4MGP.js} +1 -1
- package/dist/cdn/ZSAOF72V.js +2 -0
- package/dist/cdn/{GZZMHIFA.js → ZU3YB37T.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +7 -9
- package/dist/components/layer-table/customElement.js +75 -65
- 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 +6 -6
- package/package.json +1 -1
- package/dist/cdn/A4KEZALJ.js +0 -2
- package/dist/cdn/CGQALCTZ.js +0 -4
- package/dist/cdn/CXTHIJOC.js +0 -351
- package/dist/cdn/DE7GSGUB.js +0 -2
- package/dist/cdn/GPIIJWNM.js +0 -2
- package/dist/cdn/IGY23J7D.js +0 -2
|
@@ -3,11 +3,11 @@ import { c as E } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { e as I, g as T, c as v } from "../../chunks/mapViewUtils.js";
|
|
4
4
|
import { b as F } from "../../chunks/queryUtils.js";
|
|
5
5
|
import { d as x } from "../../chunks/downloadUtils.js";
|
|
6
|
-
import { b
|
|
6
|
+
import { b } from "../../chunks/interfaces.js";
|
|
7
7
|
import { defineCustomElements as S } from "@arcgis/instant-apps-components/loader";
|
|
8
8
|
import { u as O } from "../../chunks/useT9n.js";
|
|
9
9
|
import { css as C, html as c, nothing as u } from "lit";
|
|
10
|
-
import { createRef as y, ref as
|
|
10
|
+
import { createRef as y, ref as g } from "lit-html/directives/ref.js";
|
|
11
11
|
import { LitElement as A, createEvent as o, noShadowRoot as H, safeClassMap as m } from "@arcgis/lumina";
|
|
12
12
|
import { f as L } from "../../chunks/helpers.js";
|
|
13
13
|
import $ from "@arcgis/core/widgets/FeatureTable.js";
|
|
@@ -17,7 +17,7 @@ import w from "@arcgis/core/widgets/FeatureTable/support/TableTemplate.js";
|
|
|
17
17
|
const V = 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
18
|
class M extends A {
|
|
19
19
|
constructor() {
|
|
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) => {
|
|
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._isAddingListeners = !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;
|
|
22
22
|
}, this.createFeatureEditorClosed = () => {
|
|
23
23
|
this._createFeatureEditor = void 0;
|
|
@@ -149,9 +149,9 @@ class M extends A {
|
|
|
149
149
|
if (s.rowHighlightIds.length && s.rowHighlightIds.removeAll(), s.rowHighlightIds.add(i), this._highlightFeatures(i), this.zoomAndScrollToSelected && s && this.mapView) {
|
|
150
150
|
const a = s.viewModel.getObjectIdIndex(i);
|
|
151
151
|
s.scrollToIndex(a);
|
|
152
|
-
const l = t.layer,
|
|
153
|
-
let
|
|
154
|
-
|
|
152
|
+
const l = t.layer, r = this.mapView.allLayerViews.toArray();
|
|
153
|
+
let h;
|
|
154
|
+
r.some(async (n) => n.layer.title === l?.title && n.layer.type === "feature" ? (h = n, this.mapView && await I([i], h, this.mapView, !0, void 0, this.zoomToScale), !0) : !1);
|
|
155
155
|
}
|
|
156
156
|
}
|
|
157
157
|
async beforeLayerSelectionChange(e) {
|
|
@@ -210,10 +210,10 @@ class M extends A {
|
|
|
210
210
|
await this._initToolInfos();
|
|
211
211
|
}
|
|
212
212
|
render() {
|
|
213
|
-
const e = this._fetchingData || this._hideTable ? "display-none" : "height-full", t = this._fetchingData ? "" : "display-none", i = this._queryingData ? "" : "display-none", s = this._size.toString(), a = this.selectedIds.length.toString(), l = this.isMobile ? "height-full" : "height-full-adjusted",
|
|
214
|
-
return this._validateActiveActions(), c`<div><calcite-scrim class=${m(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile && c`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}` || ""}${
|
|
215
|
-
this._searchTextChanged(
|
|
216
|
-
}} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder ?? u} type=search ${
|
|
213
|
+
const e = this._fetchingData || this._hideTable ? "display-none" : "height-full", t = this._fetchingData ? "" : "display-none", i = this._queryingData ? "" : "display-none", s = this._size.toString(), a = this.selectedIds.length.toString(), l = this.isMobile ? "height-full" : "height-full-adjusted", r = this._canShowFullTextSearch();
|
|
214
|
+
return this._validateActiveActions(), c`<div><calcite-scrim class=${m(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile && c`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}` || ""}${r && c`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${(h) => {
|
|
215
|
+
this._searchTextChanged(h);
|
|
216
|
+
}} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder ?? u} type=search ${g(this._searchNode)}></calcite-input></div>` || ""}<calcite-loader class=${m(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${m(e)} ${g(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile ? void 0 : c`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}", s) + " | " + this._translations.recordsSelected.replace("{{selected-number-of-records}}", a)).replace("{{total}}", s).replace("{{selected}}", a)}</div>`}</calcite-shell></div>`;
|
|
217
217
|
}
|
|
218
218
|
updated() {
|
|
219
219
|
this._table && this.updateRelatedAttachmentColumns();
|
|
@@ -289,7 +289,7 @@ class M extends A {
|
|
|
289
289
|
return c`<div class="display-flex" slot=${e ?? u}><field-selection .configExtraFields=${s?.extraFields} .layer=${t} .mapView=${this.mapView} .table=${i} .tableRef=${this.el}></field-selection>${this.enableShare && !this.isMobile ? this._getShare("share") : void 0}</div>`;
|
|
290
290
|
}
|
|
291
291
|
_getTableControlRow(e) {
|
|
292
|
-
return c`<div class=${"height-51-px width-full display-flex"} slot=${e ?? u} ${
|
|
292
|
+
return c`<div class=${"height-51-px width-full display-flex"} slot=${e ?? u} ${g(this._toolbar)}>${this._getActionBar()}</div>`;
|
|
293
293
|
}
|
|
294
294
|
_getActionBar() {
|
|
295
295
|
return c`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar") ?? u} layout=horizontal><calcite-action-group>${this.isMobile ? void 0 : this._getActions()}</calcite-action-group></calcite-action-bar>`;
|
|
@@ -300,7 +300,7 @@ class M extends A {
|
|
|
300
300
|
_validateEnabledActions() {
|
|
301
301
|
const e = this._getIds().length, t = ["zoom-to-object", "pencil", "trash", "erase", "selected-items-filter", "copy"];
|
|
302
302
|
this._toolInfos?.forEach((i) => {
|
|
303
|
-
i && t.indexOf(i.icon) > -1 && (i.disabled = i.icon === "pencil" ? e < 2 || e >
|
|
303
|
+
i && t.indexOf(i.icon) > -1 && (i.disabled = i.icon === "pencil" ? e < 2 || e > b : e < 1, i.toolTip = i.icon === "pencil" ? e > b ? this._translations.featureEditLimitNotice : this._translations.editMultiple : i.toolTip);
|
|
304
304
|
});
|
|
305
305
|
}
|
|
306
306
|
_validateActiveActions() {
|
|
@@ -310,7 +310,7 @@ class M extends A {
|
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
312
|
async _initToolInfos() {
|
|
313
|
-
const e = this._getIds().length > 0, t = this._relatedFeatureTable ? this._relatedFeatureTable.layer.isTable : this._layer?.isTable, i = this.featureSelectionMode === "multiple" && this._layer?.capabilities?.operations.supportsUpdate, s = this._getSelectedIds().length < 2 || this._getSelectedIds().length >
|
|
313
|
+
const e = this._getIds().length > 0, t = this._relatedFeatureTable ? this._relatedFeatureTable.layer.isTable : this._layer?.isTable, i = this.featureSelectionMode === "multiple" && this._layer?.capabilities?.operations.supportsUpdate, s = this._getSelectedIds().length < 2 || this._getSelectedIds().length > b, a = !this.mapHidden && !t, l = !this._relatedFeatureTable && (!this._layer?.isTable || this._hasFilterExpressions()), r = this._featuresEmpty(), h = this.featureSelectionMode === "single";
|
|
314
314
|
let n = this.enableCSV;
|
|
315
315
|
if (this._relatedFeatureTable) {
|
|
316
316
|
const f = await this._queryRelatedFeatures();
|
|
@@ -386,21 +386,21 @@ class M extends A {
|
|
|
386
386
|
func: () => this._toggleShowSelected(),
|
|
387
387
|
disabled: !e,
|
|
388
388
|
toolTip: this._showOnlySelected ? this._translations.showAll : this._translations.showSelected
|
|
389
|
-
}), !
|
|
389
|
+
}), !h && !this._relatedFeatureTable && d.push({
|
|
390
390
|
active: !1,
|
|
391
391
|
icon: "list-check-all",
|
|
392
392
|
indicator: !1,
|
|
393
393
|
func: async () => await this._selectAll(),
|
|
394
394
|
label: this._translations.selectAll,
|
|
395
|
-
disabled:
|
|
395
|
+
disabled: r,
|
|
396
396
|
toolTip: this._translations.selectAll
|
|
397
|
-
}), !
|
|
397
|
+
}), !h && !this._relatedFeatureTable && d.push({
|
|
398
398
|
active: !1,
|
|
399
399
|
icon: "compare",
|
|
400
400
|
indicator: !1,
|
|
401
401
|
func: async () => await this._switchSelected(),
|
|
402
402
|
label: this._translations.switchSelected,
|
|
403
|
-
disabled:
|
|
403
|
+
disabled: r,
|
|
404
404
|
toolTip: this._translations.switchSelected
|
|
405
405
|
}), d.push({
|
|
406
406
|
active: !1,
|
|
@@ -421,33 +421,41 @@ class M extends A {
|
|
|
421
421
|
},
|
|
422
422
|
label: this._translations.exportCSV,
|
|
423
423
|
loading: this._csvExporting,
|
|
424
|
-
disabled:
|
|
424
|
+
disabled: r,
|
|
425
425
|
toolTip: this._translations.exportCSV
|
|
426
426
|
}), this._toolInfos = [...d];
|
|
427
427
|
}
|
|
428
428
|
async _addListenersForLayers() {
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
const
|
|
434
|
-
if (!
|
|
435
|
-
|
|
436
|
-
const
|
|
437
|
-
const
|
|
438
|
-
if (
|
|
439
|
-
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
429
|
+
if (!this._isAddingListeners) {
|
|
430
|
+
this._isAddingListeners = !0;
|
|
431
|
+
try {
|
|
432
|
+
this._layerEditsHandles.forEach((i) => i.remove()), this._layerEditsHandles = [];
|
|
433
|
+
const e = this.mapView, t = [...new Set(this.layerIds)];
|
|
434
|
+
if (!e || t.length === 0)
|
|
435
|
+
return;
|
|
436
|
+
for (const i of t) {
|
|
437
|
+
const s = await T(e, i);
|
|
438
|
+
if (!s)
|
|
439
|
+
continue;
|
|
440
|
+
const a = s.on("edits", async (l) => {
|
|
441
|
+
const r = Array.isArray(l?.addedFeatures) ? l.addedFeatures : [], h = Array.isArray(l?.updatedFeatures) ? l.updatedFeatures : [];
|
|
442
|
+
if (r.length === 0 && h.length === 0)
|
|
443
|
+
return;
|
|
444
|
+
const n = r.map((_) => _.objectId).filter((_) => _ != null), d = h.map((_) => _.objectId).filter((_) => _ != null);
|
|
445
|
+
if (n.length === 0 && d.length === 0)
|
|
446
|
+
return;
|
|
447
|
+
const f = this._layer?.id;
|
|
448
|
+
if (this._shouldSelectCreatedFeatures) {
|
|
449
|
+
await this._selectFeatures(n, i), i === f && this.featuresAdded.emit(n);
|
|
450
|
+
return;
|
|
451
|
+
} 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);
|
|
452
|
+
});
|
|
453
|
+
a && this._layerEditsHandles.push(a);
|
|
454
|
+
}
|
|
455
|
+
} finally {
|
|
456
|
+
this._isAddingListeners = !1;
|
|
450
457
|
}
|
|
458
|
+
}
|
|
451
459
|
}
|
|
452
460
|
async _selectFeatures(e, t) {
|
|
453
461
|
try {
|
|
@@ -479,9 +487,9 @@ class M extends A {
|
|
|
479
487
|
const t = this._layer?.id;
|
|
480
488
|
return this.mapInfo?.filterConfig?.layerExpressions && t !== void 0 && (e = this.mapInfo.filterConfig.layerExpressions.filter((i) => i.id === t)), e.length > 0;
|
|
481
489
|
}
|
|
482
|
-
_getAction(e, t, i, s, a, l,
|
|
490
|
+
_getAction(e, t, i, s, a, l, r, h) {
|
|
483
491
|
const n = this._layer === void 0 ? !0 : l;
|
|
484
|
-
return c`<calcite-action .active=${e} .disabled=${n} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${
|
|
492
|
+
return c`<calcite-action .active=${e} .disabled=${n} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${r} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto", `layer-table-${t}`, h)}`;
|
|
485
493
|
}
|
|
486
494
|
_showDelete() {
|
|
487
495
|
this.showDelete.emit({
|
|
@@ -489,7 +497,7 @@ class M extends A {
|
|
|
489
497
|
});
|
|
490
498
|
}
|
|
491
499
|
_getShare(e) {
|
|
492
|
-
return c`<div id=${this._getId(e) ?? u}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${
|
|
500
|
+
return c`<div id=${this._getId(e) ?? u}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${g(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom", e, this._translations.share)}</div>`;
|
|
493
501
|
}
|
|
494
502
|
_updateShareUrl() {
|
|
495
503
|
const e = this._shareNode.value?.shareUrl;
|
|
@@ -510,7 +518,9 @@ class M extends A {
|
|
|
510
518
|
}
|
|
511
519
|
_getIds() {
|
|
512
520
|
let e = this._relatedFeatureTable ?? this._table;
|
|
513
|
-
|
|
521
|
+
this._relatedFeatureTable && this._table && this._table.highlightIds.getItemAt(0) !== this.selectedIds[0] && (e = this._table);
|
|
522
|
+
const t = e?.highlightIds.map((i) => Number.parseInt(i.toString(), 10)).toArray() ?? [];
|
|
523
|
+
return Array.from(new Set(t));
|
|
514
524
|
}
|
|
515
525
|
onTableNodeCreate(e) {
|
|
516
526
|
this._tableNode = e;
|
|
@@ -779,13 +789,13 @@ class M extends A {
|
|
|
779
789
|
this._table?.highlightIds.removeAll();
|
|
780
790
|
const l = s[0].graphic.getObjectId();
|
|
781
791
|
if (l) {
|
|
782
|
-
const
|
|
783
|
-
|
|
792
|
+
const r = this._table?.highlightIds.indexOf(l);
|
|
793
|
+
r !== void 0 && r < 0 && this._table?.highlightIds.add(l);
|
|
784
794
|
}
|
|
785
795
|
} else
|
|
786
796
|
s.forEach((a) => {
|
|
787
|
-
const l = Number(a.graphic.getObjectId()),
|
|
788
|
-
|
|
797
|
+
const l = Number(a.graphic.getObjectId()), r = this._table?.highlightIds.indexOf(l);
|
|
798
|
+
r && r < 0 && l && this._table?.highlightIds.add(l);
|
|
789
799
|
});
|
|
790
800
|
this._showOnlySelected && this._table && (this._table.filterBySelectionEnabled = !0);
|
|
791
801
|
}
|
|
@@ -813,10 +823,10 @@ class M extends A {
|
|
|
813
823
|
if (this._relatedFeatureTable?.tableParent && this._relatedFeatureTable.highlightIds.length === 0) {
|
|
814
824
|
const l = this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);
|
|
815
825
|
if (l !== void 0) {
|
|
816
|
-
const
|
|
817
|
-
|
|
818
|
-
n.attributes &&
|
|
819
|
-
}), i =
|
|
826
|
+
const r = await this._queryRelatedFeatures(), h = [];
|
|
827
|
+
r && r[l]?.features && (r[l].features.forEach((n) => {
|
|
828
|
+
n.attributes && h.push(n.attributes[e.objectIdField]);
|
|
829
|
+
}), i = h.length > 0 ? h : []);
|
|
820
830
|
}
|
|
821
831
|
}
|
|
822
832
|
t[e.id] = {
|
|
@@ -827,10 +837,10 @@ class M extends A {
|
|
|
827
837
|
const s = this._relatedFeatureTable ?? this._table;
|
|
828
838
|
if (!s)
|
|
829
839
|
return;
|
|
830
|
-
const a = s && s.columns.toArray().reduce((l,
|
|
831
|
-
if (!
|
|
832
|
-
const
|
|
833
|
-
|
|
840
|
+
const a = s && s.columns.toArray().reduce((l, r) => {
|
|
841
|
+
if (!r.hidden) {
|
|
842
|
+
const h = r?.name || r?.fieldName;
|
|
843
|
+
h && l.push(h.toLocaleLowerCase());
|
|
834
844
|
}
|
|
835
845
|
return l;
|
|
836
846
|
}, []);
|
|
@@ -849,13 +859,13 @@ class M extends A {
|
|
|
849
859
|
), this._updateToolInfoLoading("export", !1), this._csvExporting = !1;
|
|
850
860
|
}
|
|
851
861
|
async _queryRelatedFeatures() {
|
|
852
|
-
const e = this._relatedFeatureTable ? this._relatedFeatureTable ? this._relatedFeatureTable.layer : this._relatedFeatureTable.tableParent?.layer : this._layer, t = this._relatedFeatureTable?.tableParent?.highlightIds?.items[0], i = this._relatedFeatureTable?.tableParent?.layer, s = e?.relationships?.find((
|
|
862
|
+
const e = this._relatedFeatureTable ? this._relatedFeatureTable ? this._relatedFeatureTable.layer : this._relatedFeatureTable.tableParent?.layer : this._layer, t = this._relatedFeatureTable?.tableParent?.highlightIds?.items[0], i = this._relatedFeatureTable?.tableParent?.layer, s = e?.relationships?.find((r) => i.relationships?.some((h) => h.id === r.id)), a = new D({
|
|
853
863
|
objectIds: [t],
|
|
854
864
|
outFields: ["*"],
|
|
855
865
|
relationshipId: s?.id
|
|
856
866
|
});
|
|
857
|
-
return t && a && await i.queryRelatedFeatures(a).catch(async (
|
|
858
|
-
console.error(
|
|
867
|
+
return t && a && await i.queryRelatedFeatures(a).catch(async (r) => {
|
|
868
|
+
console.error(r);
|
|
859
869
|
});
|
|
860
870
|
}
|
|
861
871
|
_updateToolInfoLoading(e, t) {
|
|
@@ -909,9 +919,9 @@ class M extends A {
|
|
|
909
919
|
const a = this._layer?.attributeTableTemplate?.elements;
|
|
910
920
|
let l = [];
|
|
911
921
|
a?.length > 0 && this.honorMapFieldSettings && (l = a.map((n) => n.fieldName));
|
|
912
|
-
const
|
|
913
|
-
let
|
|
914
|
-
return t && (
|
|
922
|
+
const r = s?.fields && s?.fieldOrder ? s.fieldOrder.filter((n) => s?.fields && s.fields.indexOf(n) > -1) : l.length > 0 ? l : void 0;
|
|
923
|
+
let h;
|
|
924
|
+
return t && (h = t.reduce((n, d) => {
|
|
915
925
|
const f = {
|
|
916
926
|
type: "field",
|
|
917
927
|
fieldName: d.name,
|
|
@@ -919,13 +929,13 @@ class M extends A {
|
|
|
919
929
|
menuConfig: this._getMenuConfig(d.name)
|
|
920
930
|
};
|
|
921
931
|
return s && s.fields && s?.fields?.length > 0 ? s.fields.indexOf(d.name) > -1 && n.push(f) : l.length > 0 ? l.indexOf(d.name) > -1 && n.push(f) : n.push(f), n;
|
|
922
|
-
}, [])),
|
|
932
|
+
}, [])), h ? r ? h?.sort(this._sortFields.bind(this, r)) : h : [];
|
|
923
933
|
}
|
|
924
934
|
updateRelatedAttachmentColumns() {
|
|
925
935
|
let e = this._getLayerOption(this._layer?.id || ""), t = this.hasAttachmentsEnabled(this._layer), i = !0;
|
|
926
|
-
const s = "attachments", a = (e?.extraFields || []).reduce((
|
|
927
|
-
a && (t = l && t, i = a.related.length > 0, this._table?.columns.forEach((
|
|
928
|
-
|
|
936
|
+
const s = "attachments", a = (e?.extraFields || []).reduce((r, h) => (h.startsWith("related:") ? r.related.push(h.split("related:")[1]) : r.extra.push(h), r), { related: [], extra: [] }), l = a.extra.some((r) => r.toLowerCase() === s);
|
|
937
|
+
a && (t = l && t, i = a.related.length > 0, this._table?.columns.forEach((r) => {
|
|
938
|
+
r.fieldName.startsWith("EsriFeatureTableRelationshipColumn") && (r.hidden = !a.related.some((h) => h.toLowerCase() === (r.effectiveLabel || "").toLowerCase())), r.fieldName.startsWith("EsriFeatureTableAttachmentsColumn") && (r.hidden = !a.extra.some((h) => h.toLowerCase() === r.effectiveLabel.toLowerCase()));
|
|
929
939
|
})), this._table.relatedRecordsEnabled = i, this._table.attachmentsEnabled = t;
|
|
930
940
|
}
|
|
931
941
|
getFieldLabel(e, t) {
|