@arcgis/map-components 5.1.0-next.104 → 5.1.0-next.105
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/3AKJIFJP.js +2 -0
- package/dist/cdn/6IRKJ76J.js +2 -0
- package/dist/cdn/6QJQJ4I7.js +2 -0
- package/dist/cdn/FMT63SES.js +2 -0
- package/dist/cdn/IMSDXTQ5.js +2 -0
- package/dist/cdn/JFWOTBXI.js +2 -0
- package/dist/cdn/JIAEOA2S.js +2 -0
- package/dist/cdn/PKV6NA3M.js +2 -0
- package/dist/cdn/TKQLQE4E.js +2 -0
- package/dist/cdn/TZVSBVJN.js +2 -0
- package/dist/cdn/{KASY64TA.js → UQCQAL4T.js} +1 -1
- package/dist/cdn/{UCPJMQPU.js → VVIDVEKK.js} +1 -1
- package/dist/cdn/{AWQHNAWY.js → XB5I52AG.js} +1 -1
- package/dist/cdn/XIJGC7OK.js +2 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/feature-next/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/features/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/features/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/features-next/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-analysis/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/action-utils.js +37 -23
- package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
- package/dist/components/arcgis-aggregated-features/index.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +1 -1
- package/dist/components/arcgis-feature/customElement.d.ts +4 -4
- package/dist/components/arcgis-feature/customElement.js +69 -111
- package/dist/components/arcgis-feature-next/customElement.d.ts +444 -0
- package/dist/components/arcgis-feature-next/customElement.js +279 -0
- package/dist/components/arcgis-feature-next/index.d.ts +1 -0
- package/dist/components/arcgis-feature-next/index.js +13 -0
- package/dist/components/arcgis-feature-relationship/customElement.js +76 -73
- package/dist/components/arcgis-feature-relationship/index.js +1 -0
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +18 -15
- package/dist/components/arcgis-feature-utility-network-association-list/index.js +1 -0
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +63 -53
- package/dist/components/arcgis-features/customElement.d.ts +28 -52
- package/dist/components/arcgis-features/customElement.js +181 -184
- package/dist/components/arcgis-features/index.js +0 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +678 -0
- package/dist/components/arcgis-features-next/customElement.js +400 -0
- package/dist/components/arcgis-features-next/index.d.ts +1 -0
- package/dist/components/arcgis-features-next/index.js +15 -0
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-popup/index.js +1 -1
- package/dist/components/arcgis-search/customElement.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +32 -33
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +5 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +47 -47
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/loader.js +7 -5
- package/dist/types/lumina.d.ts +17 -1
- package/dist/types/preact.d.ts +19 -1
- package/dist/types/react.d.ts +21 -1
- package/dist/types/stencil.d.ts +17 -1
- package/package.json +4 -4
- package/dist/cdn/37PU5RQF.js +0 -2
- package/dist/cdn/6U7WM64M.js +0 -2
- package/dist/cdn/AHWGHYPQ.js +0 -2
- package/dist/cdn/FNHPWOUX.js +0 -2
- package/dist/cdn/HVKDLP74.js +0 -2
- package/dist/cdn/LTUURA6B.js +0 -2
- package/dist/cdn/SKRNQKVO.js +0 -2
- package/dist/cdn/W2QDJLIF.js +0 -2
- package/dist/cdn/XIN3BIAA.js +0 -2
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import { c as $ } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as w, html as n } from "lit";
|
|
4
|
+
import { ref as y } from "lit/directives/ref.js";
|
|
5
|
+
import { u as I } from "../../chunks/useT9n.js";
|
|
6
|
+
import { classes as M } from "@arcgis/toolkit/dom";
|
|
7
|
+
import { usePropertyChange as C } from "@arcgis/lumina/controllers";
|
|
8
|
+
import { m as x } from "../../chunks/useViewModel.js";
|
|
9
|
+
import { LitElement as b, createEvent as F, nothing as _, safeClassMap as L } from "@arcgis/lumina";
|
|
10
|
+
import { substitute as T } from "@arcgis/core/intl.js";
|
|
11
|
+
import { renderingSanitizer as A } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
12
|
+
import { a as R, g as D, c as V, b as k, s as d, i as E, d as B } from "../../chunks/feature-utils.js";
|
|
13
|
+
import H from "@arcgis/core/core/Collection.js";
|
|
14
|
+
import { watch as N } from "@arcgis/core/core/reactiveUtils.js";
|
|
15
|
+
import { stripHTML as P } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
16
|
+
import Z from "@arcgis/core/popup/Feature.js";
|
|
17
|
+
const z = w`:host{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1);--calcite-color-background: var(--calcite-color-foreground-1)}.root{flex:1 1 auto}.root calcite-icon{box-sizing:content-box}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.content-element{margin-bottom:var(--calcite-spacing-lg);padding:0 var(--calcite-spacing-sm);display:flex;flex-direction:column}.content-element:only-child,.content-element:last-child{margin-bottom:var(--calcite-spacing-xxs)}.last-edited-info{padding-top:var(--calcite-spacing-xs);font-size:var(--calcite-font-size-sm)}`, U = x(Z);
|
|
18
|
+
class S extends b {
|
|
19
|
+
constructor() {
|
|
20
|
+
super(...arguments), this.messages = I(), this._rootFlowNode = null, this.internalFlowItems = new H(), this.flowType = "feature", this.viewModel = U(this), this.view = this.viewModel.view, this.icon = "icon", this.isFeatureFromTable = this.viewModel.isFeatureFromTable, this.graphic = this.viewModel.graphic, this.defaultPopupTemplateEnabled = this.viewModel.defaultPopupTemplateEnabled, this.headingLevel = 2, this.spatialReference = this.viewModel.spatialReference, this.timeZone = this.viewModel.timeZone, this.heading = this.viewModel.heading, this.map = this.viewModel.map, this.chartAnimationDisabled = this.viewModel.abilities.chartAnimation, this.hideHeading = !1, this.hideContent = !1, this.hideAttachmentsContent = !1, this.hideCustomContent = !1, this.hideExpressionContent = !1, this.hideFieldsContent = !1, this.hideMediaContent = !1, this.showRelationshipContent = !1, this.hideTextContent = !1, this.showUtilityNetworkContent = !1, this.hideLastEditedInfo = !1, this.autoDestroyDisabled = !1, this.location = this.viewModel.location, this.state = this.viewModel.state, this.arcgisPropertyChange = C()("flowItems", "state"), this.arcgisReady = F();
|
|
21
|
+
}
|
|
22
|
+
static {
|
|
23
|
+
this.properties = { popupTemplate: 16, sourceLayer: 16, fieldInfoMap: 16, values: 16, globalValues: 16, internalFlowItems: 16, flowType: 1, viewModel: 0, view: 0, flowItems: 0, referenceElement: 1, icon: 1, isFeatureFromTable: 36, graphic: 0, defaultPopupTemplateEnabled: 5, headingLevel: 9, spatialReference: 0, timeZone: 1, heading: 0, map: 0, chartAnimationDisabled: 5, hideHeading: 5, hideContent: 5, hideAttachmentsContent: 5, hideCustomContent: 5, hideExpressionContent: 5, hideFieldsContent: 5, hideMediaContent: 5, showRelationshipContent: 5, hideTextContent: 5, showUtilityNetworkContent: 5, hideLastEditedInfo: 5, autoDestroyDisabled: 5, messageOverrides: 0, label: 1, location: 0, state: 32 };
|
|
24
|
+
}
|
|
25
|
+
static {
|
|
26
|
+
this.styles = z;
|
|
27
|
+
}
|
|
28
|
+
get popupTemplate() {
|
|
29
|
+
return R(this.graphic, this.defaultPopupTemplateEnabled) ?? void 0;
|
|
30
|
+
}
|
|
31
|
+
get sourceLayer() {
|
|
32
|
+
return D(this.graphic);
|
|
33
|
+
}
|
|
34
|
+
get fieldInfoMap() {
|
|
35
|
+
return V(k(this.popupTemplate), this.sourceLayer);
|
|
36
|
+
}
|
|
37
|
+
get values() {
|
|
38
|
+
return this.graphic?.attributes ?? {};
|
|
39
|
+
}
|
|
40
|
+
get globalValues() {
|
|
41
|
+
return this.viewModel.formattedAttributes?.global ?? {};
|
|
42
|
+
}
|
|
43
|
+
async destroy() {
|
|
44
|
+
this._removeFlowItems(), await this.manager.destroy();
|
|
45
|
+
}
|
|
46
|
+
nextMedia(e) {
|
|
47
|
+
this._pageContentElementMedia(e, 1);
|
|
48
|
+
}
|
|
49
|
+
previousMedia(e) {
|
|
50
|
+
this._pageContentElementMedia(e, -1);
|
|
51
|
+
}
|
|
52
|
+
setActiveMedia(e, t) {
|
|
53
|
+
const i = this.viewModel.content;
|
|
54
|
+
if (!Array.isArray(i))
|
|
55
|
+
return;
|
|
56
|
+
const s = i[e];
|
|
57
|
+
if (s?.type !== "media")
|
|
58
|
+
return;
|
|
59
|
+
const a = s;
|
|
60
|
+
this._setContentElementMedia(a, t);
|
|
61
|
+
}
|
|
62
|
+
async updateGeometry() {
|
|
63
|
+
return await this.viewModel.updateGeometry();
|
|
64
|
+
}
|
|
65
|
+
loaded() {
|
|
66
|
+
this.manager.onLifecycle(() => [
|
|
67
|
+
N(() => [this.internalFlowItems?.length], () => this._setFocus())
|
|
68
|
+
]);
|
|
69
|
+
}
|
|
70
|
+
_setContentElementMedia(e, t) {
|
|
71
|
+
const i = e.mediaInfos?.length ?? 0, s = (t + i) % i;
|
|
72
|
+
e.activeMediaInfoIndex = s;
|
|
73
|
+
}
|
|
74
|
+
_pageContentElementMedia(e, t) {
|
|
75
|
+
const i = this.viewModel.content;
|
|
76
|
+
if (!Array.isArray(i))
|
|
77
|
+
return;
|
|
78
|
+
const s = i[e];
|
|
79
|
+
if (s?.type !== "media")
|
|
80
|
+
return;
|
|
81
|
+
const a = s, { activeMediaInfoIndex: o } = a, r = (o ?? 0) + t;
|
|
82
|
+
this._setContentElementMedia(a, r);
|
|
83
|
+
}
|
|
84
|
+
_removeFlowItems() {
|
|
85
|
+
this.internalFlowItems?.destroyAll();
|
|
86
|
+
}
|
|
87
|
+
_storeRootFlowNode(e) {
|
|
88
|
+
this._rootFlowNode = e;
|
|
89
|
+
}
|
|
90
|
+
_setFocus() {
|
|
91
|
+
this._rootFlowNode?.setFocus();
|
|
92
|
+
}
|
|
93
|
+
_handleDrillInBackClick() {
|
|
94
|
+
this.internalFlowItems?.pop()?.destroy();
|
|
95
|
+
}
|
|
96
|
+
render() {
|
|
97
|
+
const { state: e } = this.viewModel, t = n`<div class="container">${e === "error" ? this._renderError() : e === "loading" ? this._renderLoading() : this._renderContentContainer()}</div>`;
|
|
98
|
+
return n`<div class="root">${t}</div>`;
|
|
99
|
+
}
|
|
100
|
+
_renderError() {
|
|
101
|
+
const { messages: e, hideHeading: t } = this;
|
|
102
|
+
return n`<calcite-notice icon=exclamation-mark-circle kind=danger open scale=s>${t ? null : n`<div slot=title>${e.error}</div>`}<div slot=message>${e.loadingError}</div></calcite-notice>`;
|
|
103
|
+
}
|
|
104
|
+
_renderLoading() {
|
|
105
|
+
return n`<div class="loading-container"><calcite-loader inline label></calcite-loader></div>`;
|
|
106
|
+
}
|
|
107
|
+
_renderAttachments(e) {
|
|
108
|
+
const { values: t, fieldInfoMap: i, sourceLayer: s, globalValues: a } = this, o = d({
|
|
109
|
+
values: t,
|
|
110
|
+
fieldInfoMap: i,
|
|
111
|
+
globalValues: a,
|
|
112
|
+
layer: s,
|
|
113
|
+
text: e.title
|
|
114
|
+
}), r = d({
|
|
115
|
+
values: t,
|
|
116
|
+
fieldInfoMap: i,
|
|
117
|
+
globalValues: a,
|
|
118
|
+
layer: s,
|
|
119
|
+
text: e.description
|
|
120
|
+
});
|
|
121
|
+
return n`<arcgis-feature-attachments .headingLevel=${this.headingLevel} .heading=${o} class="content-element" .displayType=${e.displayType} .attachmentKeywords=${e.attachmentKeywords ?? void 0} .attachmentTypes=${e.attachmentTypes ?? void 0} .orderByFields=${e.orderByFields ?? void 0} .graphic=${this.graphic ?? void 0} .description=${r} .messages=${this.messages}></arcgis-feature-attachments>`;
|
|
122
|
+
}
|
|
123
|
+
_renderCustom(e) {
|
|
124
|
+
return n`<arcgis-feature-content .creator=${e.creator} .destroyer=${e.destroyer ?? void 0} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
125
|
+
}
|
|
126
|
+
_renderFields(e, t) {
|
|
127
|
+
const i = this.viewModel.formattedAttributes, { values: s, fieldInfoMap: a, sourceLayer: o, popupTemplate: r, globalValues: l, graphic: c } = this, h = !!e?.fieldInfos, u = (e.fieldInfos ?? r?.fieldInfos ?? [])?.filter(({ fieldName: g }) => !!g && (E(g) || B(g) || g in s)), f = r?.expressionInfos, m = d({
|
|
128
|
+
values: s,
|
|
129
|
+
fieldInfoMap: a,
|
|
130
|
+
globalValues: l,
|
|
131
|
+
layer: o,
|
|
132
|
+
text: e.title
|
|
133
|
+
}), v = d({
|
|
134
|
+
values: s,
|
|
135
|
+
fieldInfoMap: a,
|
|
136
|
+
globalValues: l,
|
|
137
|
+
layer: o,
|
|
138
|
+
text: e.description
|
|
139
|
+
});
|
|
140
|
+
return n`<arcgis-feature-fields .headingLevel=${this.headingLevel} .heading=${m} class="content-element" .messages=${this.messages} .graphic=${c ?? void 0} .isContentFieldInfos=${h} .layer=${o} .description=${v} .values=${{
|
|
141
|
+
...i?.global,
|
|
142
|
+
...i?.content?.[t]
|
|
143
|
+
}} .fieldInfos=${u} .expressionInfos=${f ?? void 0}></arcgis-feature-fields>`;
|
|
144
|
+
}
|
|
145
|
+
_renderMedia(e, t) {
|
|
146
|
+
const { values: i, graphic: s, fieldInfoMap: a, sourceLayer: o, popupTemplate: r, globalValues: l } = this, { formattedAttributes: c, relatedInfos: h, expressionAttributes: p } = this.viewModel, u = {
|
|
147
|
+
...c?.global,
|
|
148
|
+
...c?.content?.[t]
|
|
149
|
+
}, f = d({
|
|
150
|
+
values: i,
|
|
151
|
+
fieldInfoMap: a,
|
|
152
|
+
globalValues: l,
|
|
153
|
+
layer: o,
|
|
154
|
+
text: e.title
|
|
155
|
+
}), m = d({
|
|
156
|
+
values: i,
|
|
157
|
+
fieldInfoMap: a,
|
|
158
|
+
globalValues: l,
|
|
159
|
+
layer: o,
|
|
160
|
+
text: e.description
|
|
161
|
+
});
|
|
162
|
+
return n`<arcgis-feature-media .activeMediaInfoIndex=${e.activeMediaInfoIndex ?? 0} .chartAnimationDisabled=${this.chartAnimationDisabled} .headingLevel=${this.headingLevel} .heading=${f} class="content-element" .description=${m} .values=${i} .expressionValues=${p} .layer=${o} .graphic=${s ?? void 0} .messages=${this.messages} .fieldInfoMap=${a} .mediaInfos=${e.mediaInfos ?? []} .popupTemplate=${r ?? void 0} .relatedInfos=${h} .formattedValues=${u}></arcgis-feature-media>`;
|
|
163
|
+
}
|
|
164
|
+
_renderText(e) {
|
|
165
|
+
const { values: t, fieldInfoMap: i, sourceLayer: s, globalValues: a } = this;
|
|
166
|
+
return n`<arcgis-feature-content .creator=${d({
|
|
167
|
+
values: t,
|
|
168
|
+
fieldInfoMap: i,
|
|
169
|
+
globalValues: a,
|
|
170
|
+
layer: s,
|
|
171
|
+
text: e.text
|
|
172
|
+
})} .graphic=${this.graphic ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
173
|
+
}
|
|
174
|
+
_renderExpression(e, t) {
|
|
175
|
+
const i = this.viewModel.formattedAttributes, { fieldInfoMap: s } = this;
|
|
176
|
+
return n`<arcgis-feature-expression .expressionInfo=${e.expressionInfo} .map=${this.map ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .view=${this.viewModel.view ?? void 0} .graphic=${this.graphic ?? void 0} .location=${this.location ?? void 0} .headingLevel=${this.headingLevel} class="content-element" .interceptor=${this.viewModel.interceptor} .messages=${this.messages} .fieldInfoMap=${s} .values=${{
|
|
177
|
+
...i?.global,
|
|
178
|
+
...i?.content?.[t]
|
|
179
|
+
}}></arcgis-feature-expression>`;
|
|
180
|
+
}
|
|
181
|
+
_renderRelationship(e, t) {
|
|
182
|
+
const { values: i, graphic: s, fieldInfoMap: a, sourceLayer: o, globalValues: r } = this, { displayCount: l, orderByFields: c, relationshipId: h } = e, { formattedAttributes: p, view: u } = this.viewModel, f = {
|
|
183
|
+
...p?.global,
|
|
184
|
+
...p?.content?.[t]
|
|
185
|
+
}, m = d({
|
|
186
|
+
values: i,
|
|
187
|
+
fieldInfoMap: a,
|
|
188
|
+
globalValues: r,
|
|
189
|
+
layer: o,
|
|
190
|
+
text: e.title
|
|
191
|
+
}), v = d({
|
|
192
|
+
values: i,
|
|
193
|
+
fieldInfoMap: a,
|
|
194
|
+
globalValues: r,
|
|
195
|
+
layer: o,
|
|
196
|
+
text: e.description
|
|
197
|
+
});
|
|
198
|
+
return n`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} class="content-element" .flowItems=${this.flowItems ?? this.internalFlowItems} .description=${v} .layer=${o} .map=${this.map ?? void 0} .displayCount=${l} .graphic=${s ?? void 0} .heading=${m} .headingLevel=${this.headingLevel} .messages=${this.messages} .orderByFields=${c ?? void 0} .relationshipId=${h ?? void 0} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} use-feature-next-flow-item .values=${f} .view=${u ?? void 0}></arcgis-feature-relationship>`;
|
|
199
|
+
}
|
|
200
|
+
_renderAssociation(e) {
|
|
201
|
+
const { fieldInfoMap: t, globalValues: i, graphic: s, messages: a, sourceLayer: o, values: r } = this, l = d({
|
|
202
|
+
values: r,
|
|
203
|
+
fieldInfoMap: t,
|
|
204
|
+
globalValues: i,
|
|
205
|
+
layer: o,
|
|
206
|
+
text: e.title
|
|
207
|
+
}), c = d({
|
|
208
|
+
values: r,
|
|
209
|
+
fieldInfoMap: t,
|
|
210
|
+
globalValues: i,
|
|
211
|
+
layer: o,
|
|
212
|
+
text: e.description
|
|
213
|
+
});
|
|
214
|
+
return n`<arcgis-feature-utility-network-associations .autoDestroyDisabled=${this.autoDestroyDisabled} .associationTypes=${e.associationTypes} class="content-element" .description=${c} .flowItems=${this.flowItems ?? this.internalFlowItems} .graphic=${s ?? void 0} .heading=${l} .headingLevel=${this.headingLevel} .layer=${o} .map=${this.map ?? void 0} .messages=${a} .parentFeatureViewModel=${this.viewModel} .referenceElement=${this.referenceElement} .spatialReference=${this.spatialReference ?? void 0} .timeZone=${this.timeZone ?? void 0} use-feature-next-flow-item .view=${this.viewModel.view ?? void 0}></arcgis-feature-utility-network-associations>`;
|
|
215
|
+
}
|
|
216
|
+
_renderContentElement(e, t) {
|
|
217
|
+
switch (e.type) {
|
|
218
|
+
case "attachments":
|
|
219
|
+
return this.hideAttachmentsContent ? null : this._renderAttachments(e);
|
|
220
|
+
case "custom":
|
|
221
|
+
return this.hideCustomContent ? null : this._renderCustom(e);
|
|
222
|
+
case "fields":
|
|
223
|
+
return this.hideFieldsContent ? null : this._renderFields(e, t);
|
|
224
|
+
case "media":
|
|
225
|
+
return this.hideMediaContent ? null : this._renderMedia(e, t);
|
|
226
|
+
case "text":
|
|
227
|
+
return this.hideTextContent ? null : this._renderText(e);
|
|
228
|
+
case "expression":
|
|
229
|
+
return this.hideExpressionContent ? null : this._renderExpression(e, t);
|
|
230
|
+
case "relationship":
|
|
231
|
+
return this.showRelationshipContent ? this._renderRelationship(e, t) : null;
|
|
232
|
+
case "utility-network-associations":
|
|
233
|
+
return this.showUtilityNetworkContent ? this._renderAssociation(e) : null;
|
|
234
|
+
default:
|
|
235
|
+
return null;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
_renderContent() {
|
|
239
|
+
const { content: e, graphic: t } = this.viewModel;
|
|
240
|
+
if (!e)
|
|
241
|
+
return null;
|
|
242
|
+
if (Array.isArray(e) && e.length)
|
|
243
|
+
return e.length ? e.map(this._renderContentElement, this) : null;
|
|
244
|
+
if (typeof e == "string") {
|
|
245
|
+
const { values: i, fieldInfoMap: s, sourceLayer: a, globalValues: o } = this;
|
|
246
|
+
return n`<arcgis-feature-content .creator=${d({
|
|
247
|
+
values: i,
|
|
248
|
+
fieldInfoMap: s,
|
|
249
|
+
globalValues: o,
|
|
250
|
+
layer: a,
|
|
251
|
+
text: e
|
|
252
|
+
})} .graphic=${t ?? void 0} class="content-element"></arcgis-feature-content>`;
|
|
253
|
+
}
|
|
254
|
+
return e instanceof HTMLElement ? e : null;
|
|
255
|
+
}
|
|
256
|
+
_renderContentContainer() {
|
|
257
|
+
const { hideContent: e, internalFlowItems: t, headingLevel: i, state: s, messages: a, heading: o, hideHeading: r } = this;
|
|
258
|
+
if (e)
|
|
259
|
+
return null;
|
|
260
|
+
const l = n`<div class="main">${[this._renderContent(), this._renderLastEditInfo()]}</div>`, c = a.returnToInitialFeature ?? "";
|
|
261
|
+
return this.flowItems ? l : n`<calcite-flow ${y(this._storeRootFlowNode)}><calcite-flow-item .loading=${s === "loading"} .headingLevel=${i} .heading=${this.hideHeading ? void 0 : P(this.heading)} .selected=${!t.length}>${!r && o ? n`<div slot=heading><div .innerHTML=${A.sanitize(o ?? "") ?? ""}></div></div>` : null}${l}</calcite-flow-item>${t.toArray().map((h, p) => n`<calcite-flow-item @calciteFlowItemBack=${(u) => {
|
|
262
|
+
u.preventDefault(), this._handleDrillInBackClick();
|
|
263
|
+
}} .loading=${s === "loading"} .headingLevel=${i} .selected=${p === t.length - 1}><calcite-action icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${c} title=${c ?? _}></calcite-action>${h}</calcite-flow-item>`)}</calcite-flow>`;
|
|
264
|
+
}
|
|
265
|
+
_renderLastEditInfo() {
|
|
266
|
+
const { hideLastEditedInfo: e, messages: t } = this, { lastEditInfo: i } = this.viewModel;
|
|
267
|
+
if (!i || e)
|
|
268
|
+
return null;
|
|
269
|
+
const { date: s, user: a } = i, o = i.type === "edit" ? a ? t.lastEditedByUser : t.lastEdited : a ? t.lastCreatedByUser : t.lastCreated, r = T(o ?? "", {
|
|
270
|
+
date: s,
|
|
271
|
+
user: a
|
|
272
|
+
});
|
|
273
|
+
return n`<div class=${L(M("last-edited-info", "content-element"))}>${r}</div>`;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
$("arcgis-feature-next", S);
|
|
277
|
+
export {
|
|
278
|
+
S as ArcgisFeatureNext
|
|
279
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./customElement.js";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import "@esri/calcite-components/components/calcite-notice";
|
|
2
|
+
import "@esri/calcite-components/components/calcite-loader";
|
|
3
|
+
import "../arcgis-feature-attachments/index.js";
|
|
4
|
+
import "../arcgis-feature-content/index.js";
|
|
5
|
+
import "../arcgis-feature-fields/index.js";
|
|
6
|
+
import "../arcgis-feature-media/index.js";
|
|
7
|
+
import "../arcgis-feature-expression/index.js";
|
|
8
|
+
import "../arcgis-feature-relationship/index.js";
|
|
9
|
+
import "../arcgis-feature-utility-network-associations/index.js";
|
|
10
|
+
import "@esri/calcite-components/components/calcite-flow";
|
|
11
|
+
import "@esri/calcite-components/components/calcite-flow-item";
|
|
12
|
+
import "@esri/calcite-components/components/calcite-action";
|
|
13
|
+
export * from "./customElement.js";
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as k } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as H, html as o } from "lit";
|
|
4
|
-
import { keyed as
|
|
5
|
-
import { debounce as
|
|
6
|
-
import { LitElement as K, renderElement as
|
|
4
|
+
import { keyed as A } from "lit/directives/keyed.js";
|
|
5
|
+
import { debounce as q } from "@arcgis/toolkit/function";
|
|
6
|
+
import { LitElement as K, renderElement as L, safeClassMap as D } from "@arcgis/lumina";
|
|
7
7
|
import { templateHasKey as E, stripHTML as N } from "@arcgis/core/applications/Components/stringUtils.js";
|
|
8
8
|
import { renderingSanitizer as O } from "@arcgis/core/applications/Components/sanitizerUtils.js";
|
|
9
|
-
import { isRelatableFeatureSupportedLayer as W, findRelatedLayer as
|
|
10
|
-
import { substitute as
|
|
9
|
+
import { isRelatableFeatureSupportedLayer as W, findRelatedLayer as Z } from "@arcgis/core/applications/Components/featureUtils.js";
|
|
10
|
+
import { substitute as z, formatNumber as S } from "@arcgis/core/intl.js";
|
|
11
11
|
import { watch as f, on as G } from "@arcgis/core/core/reactiveUtils.js";
|
|
12
12
|
import { o as J } from "../../chunks/feature-utils.js";
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { ignoreAbortErrors as
|
|
13
|
+
import V from "@arcgis/core/core/Collection.js";
|
|
14
|
+
import M from "@arcgis/core/rest/support/RelationshipQuery.js";
|
|
15
|
+
import { ignoreAbortErrors as R } from "@arcgis/core/core/promiseUtils.js";
|
|
16
16
|
import { classes as Q } from "@arcgis/toolkit/dom";
|
|
17
17
|
import { createRef as U, ref as X } from "lit/directives/ref.js";
|
|
18
18
|
import Y from "@arcgis/core/popup/Feature.js";
|
|
@@ -20,18 +20,18 @@ const ee = H`:host{position:relative;flex:1 1 auto}.list{min-height:var(--calcit
|
|
|
20
20
|
const e = [];
|
|
21
21
|
if (g.formTemplate) {
|
|
22
22
|
const { description: t, title: r } = g.formTemplate;
|
|
23
|
-
g.fields?.forEach((
|
|
24
|
-
const
|
|
25
|
-
(
|
|
23
|
+
g.fields?.forEach((s) => {
|
|
24
|
+
const i = r && E(r, s.name), a = t && E(t, s.name);
|
|
25
|
+
(i || a) && e.push(s.name);
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
28
|
return e;
|
|
29
|
-
},
|
|
29
|
+
}, P = 100;
|
|
30
30
|
class re extends K {
|
|
31
31
|
constructor() {
|
|
32
32
|
super(...arguments), this._increaseFeaturePage = () => {
|
|
33
|
-
const { state: e, showAllEnabled: t, relatedFeatures: r, featuresPerPage:
|
|
34
|
-
e === "ready" && t && r.length >=
|
|
33
|
+
const { state: e, showAllEnabled: t, relatedFeatures: r, featuresPerPage: s, featurePage: i } = this;
|
|
34
|
+
e === "ready" && t && r.length >= s * i && this.featurePage++;
|
|
35
35
|
}, this._relatedFeatureIntersectionObserver = new IntersectionObserver(([e]) => {
|
|
36
36
|
e?.isIntersecting && this._increaseFeaturePage();
|
|
37
37
|
}, {
|
|
@@ -48,23 +48,23 @@ class re extends K {
|
|
|
48
48
|
}, this._queryController = async () => {
|
|
49
49
|
this._cancelQuery();
|
|
50
50
|
const e = new AbortController();
|
|
51
|
-
this._queryAbortController = e, await
|
|
51
|
+
this._queryAbortController = e, await R(this._query()), this._queryAbortController === e && (this._queryAbortController = null);
|
|
52
52
|
}, this._queryFeatureCountController = async () => {
|
|
53
53
|
this._loaded = !1, this._cancelQueryFeatureCount();
|
|
54
54
|
const e = new AbortController();
|
|
55
|
-
this._queryFeatureCountAbortController = e, await
|
|
55
|
+
this._queryFeatureCountAbortController = e, await R(this._queryFeatureCount()), this._queryFeatureCountAbortController === e && (this._queryFeatureCountAbortController = null), this._loaded = !0;
|
|
56
56
|
}, this._queryPageController = async () => {
|
|
57
57
|
const e = new AbortController();
|
|
58
|
-
this._queryPageAbortController = e, await
|
|
59
|
-
}, this._queryDebounced =
|
|
58
|
+
this._queryPageAbortController = e, await R(this._queryPage()), this._queryPageAbortController === e && (this._queryPageAbortController = null);
|
|
59
|
+
}, this._queryDebounced = q(this._queryController, P), this._queryFeatureCountDebounced = q(this._queryFeatureCountController, P), this._queryPageDebounced = q(this._queryPageController, P), this._query = async () => {
|
|
60
60
|
const { _queryAbortController: e, relatedFeatures: t } = this;
|
|
61
61
|
!this.featureCount || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || (this.relatedFeatureViewModels.destroyAll(), this.featurePage = 1, t.destroyAll(), t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({ signal: e?.signal }))));
|
|
62
62
|
}, this._addFlowItem = (e) => {
|
|
63
63
|
e && this.flowItems?.push(e);
|
|
64
|
-
}, this._relatedFeatureIntersectionObserverNode = U(), this.relatedFeatures = new
|
|
64
|
+
}, this._relatedFeatureIntersectionObserverNode = U(), this.relatedFeatures = new V(), this._queryAbortController = null, this._queryPageAbortController = null, this._queryFeatureCountAbortController = null, this.featureCount = 0, this._loaded = !1, this.relatedFeatureViewModels = new V(), this.autoDestroyDisabled = !1, this.featuresPerPage = 10, this.useFeatureNextFlowItem = !1, this.flowType = "feature-relationship", this.headingLevel = 2, this.hideHeading = !1, this.hideDescription = !1, this.showAllEnabled = !1;
|
|
65
65
|
}
|
|
66
66
|
static {
|
|
67
|
-
this.properties = { allCategories: 16, _queryAbortController: 16, _queryPageAbortController: 16, _queryFeatureCountAbortController: 16, featureCount: 16, _loaded: 16, canLoad: 16, canQuery: 16, displayShowAllButton: 16, displayListItems: 16, categories: 16, itemDescriptionFieldName: 16, relatedFeatureViewModels: 16, state: 16, autoDestroyDisabled: 5, allItemsDescription: 32, featurePage: 9, featuresPerPage: 9, flowItems: 0, flowType: 1, headingLevel: 9, messages: 0, heading: 1, description: 1, values: 0, activeCategory: 0, hideHeading: 5, hideDescription: 5, displayCount: 9, graphic: 0, layer: 0, map: 0, view: 0, spatialReference: 0, timeZone: 1, orderByFields: 0, relationshipId: 9, showAllEnabled: 5, label: 3 };
|
|
67
|
+
this.properties = { allCategories: 16, _queryAbortController: 16, _queryPageAbortController: 16, _queryFeatureCountAbortController: 16, featureCount: 16, _loaded: 16, canLoad: 16, canQuery: 16, displayShowAllButton: 16, displayListItems: 16, categories: 16, itemDescriptionFieldName: 16, relatedFeatureViewModels: 16, state: 16, autoDestroyDisabled: 5, allItemsDescription: 32, featurePage: 9, featuresPerPage: 9, flowItems: 0, useFeatureNextFlowItem: 5, flowType: 1, headingLevel: 9, messages: 0, heading: 1, description: 1, values: 0, activeCategory: 0, hideHeading: 5, hideDescription: 5, displayCount: 9, graphic: 0, layer: 0, map: 0, view: 0, spatialReference: 0, timeZone: 1, orderByFields: 0, relationshipId: 9, showAllEnabled: 5, label: 3 };
|
|
68
68
|
}
|
|
69
69
|
static {
|
|
70
70
|
this.styles = ee;
|
|
@@ -72,8 +72,8 @@ class re extends K {
|
|
|
72
72
|
get orderByFieldsFixedCasing() {
|
|
73
73
|
const { orderByFields: e, relatedLayer: t } = this;
|
|
74
74
|
return e && t?.loaded ? e.map((r) => {
|
|
75
|
-
const
|
|
76
|
-
return
|
|
75
|
+
const s = r.clone();
|
|
76
|
+
return s.field = J(r.field, t), s;
|
|
77
77
|
}) : e ?? [];
|
|
78
78
|
}
|
|
79
79
|
get supportsCacheHint() {
|
|
@@ -92,8 +92,8 @@ class re extends K {
|
|
|
92
92
|
const { layer: e, map: t, relationship: r } = this;
|
|
93
93
|
if (!e?.loaded || !t || !r)
|
|
94
94
|
return null;
|
|
95
|
-
const
|
|
96
|
-
return
|
|
95
|
+
const s = e.type === "subtype-sublayer" && e.parent && W(e.parent) ? e.parent : e;
|
|
96
|
+
return Z(t, s, r) ?? null;
|
|
97
97
|
}
|
|
98
98
|
get relatedLayerKeyField() {
|
|
99
99
|
const { relatedLayer: e, relationshipId: t } = this;
|
|
@@ -122,8 +122,8 @@ class re extends K {
|
|
|
122
122
|
return !!this.relatedLayer && !!this.relationship && this.relationshipId != null && this.objectId != null && !!e?.supportsCount && e?.supportsPagination;
|
|
123
123
|
}
|
|
124
124
|
get displayShowAllButton() {
|
|
125
|
-
const { showAllEnabled: e, featureCount: t, displayCount: r, state:
|
|
126
|
-
return !e &&
|
|
125
|
+
const { showAllEnabled: e, featureCount: t, displayCount: r, state: s, allCategoriesCount: i } = this, a = !!i && (i > r || r === 0), n = !!t && (t > r || r === 0);
|
|
126
|
+
return !e && s === "ready" && (a || n);
|
|
127
127
|
}
|
|
128
128
|
get displayListItems() {
|
|
129
129
|
const { relatedFeatures: e, allCategoriesCount: t } = this;
|
|
@@ -137,21 +137,21 @@ class re extends K {
|
|
|
137
137
|
return this.orderByFieldsFixedCasing[0]?.field || null;
|
|
138
138
|
}
|
|
139
139
|
get state() {
|
|
140
|
-
const { _queryAbortController: e, _queryFeatureCountAbortController: t, _queryPageAbortController: r, canQuery:
|
|
141
|
-
return t || a && !
|
|
140
|
+
const { _queryAbortController: e, _queryFeatureCountAbortController: t, _queryPageAbortController: r, canQuery: s, _loaded: i, canLoad: a } = this;
|
|
141
|
+
return t || a && !i ? "loading" : e || r ? "querying" : s ? "ready" : "disabled";
|
|
142
142
|
}
|
|
143
143
|
get allItemsDescription() {
|
|
144
|
-
const { messages: e, featureCount: t, allCategories: r, allCategoriesCount:
|
|
145
|
-
return
|
|
146
|
-
number:
|
|
144
|
+
const { messages: e, featureCount: t, allCategories: r, allCategoriesCount: s } = this;
|
|
145
|
+
return z(e?.numberRecords ?? "", {
|
|
146
|
+
number: S(r ? s : t)
|
|
147
147
|
});
|
|
148
148
|
}
|
|
149
149
|
get featurePage() {
|
|
150
150
|
return this._featurePage;
|
|
151
151
|
}
|
|
152
152
|
set featurePage(e) {
|
|
153
|
-
const { featuresPerPage: t, featureCount: r } = this,
|
|
154
|
-
this._featurePage = Math.min(Math.max(e,
|
|
153
|
+
const { featuresPerPage: t, featureCount: r } = this, s = 1, i = Math.ceil(r / t) || 1;
|
|
154
|
+
this._featurePage = Math.min(Math.max(e, s), i);
|
|
155
155
|
}
|
|
156
156
|
get heading() {
|
|
157
157
|
const { activeCategory: e } = this;
|
|
@@ -196,19 +196,19 @@ class re extends K {
|
|
|
196
196
|
async _queryFeatureCount() {
|
|
197
197
|
const { layer: e, relatedLayer: t } = this;
|
|
198
198
|
await e?.load(), await t?.load();
|
|
199
|
-
const { _queryFeatureCountAbortController: r, activeCategory:
|
|
200
|
-
if (!
|
|
199
|
+
const { _queryFeatureCountAbortController: r, activeCategory: s, canQuery: i, objectId: a, relatedLayerKeyField: n, relationshipId: l, relationshipKey: d, supportsCacheHint: b } = this;
|
|
200
|
+
if (!i || !e || !t || a == null) {
|
|
201
201
|
this.featureCount = 0, this.allCategories = void 0;
|
|
202
202
|
return;
|
|
203
203
|
}
|
|
204
|
-
if (t?.type === "subtype-group" && !
|
|
204
|
+
if (t?.type === "subtype-group" && !s) {
|
|
205
205
|
if (this.featureCount = 0, this.relatedFeatureViewModels.destroyAll(), this.featurePage = 1, this.relatedFeatures.destroyAll(), n && d != null) {
|
|
206
|
-
const { default:
|
|
206
|
+
const { default: C } = await import("@arcgis/core/smartMapping/statistics/uniqueValues.js"), { uniqueValueInfos: w } = await C({
|
|
207
207
|
layer: t,
|
|
208
208
|
sqlWhere: `${n} = '${d}'`,
|
|
209
209
|
field: t.subtypeField ?? void 0,
|
|
210
210
|
signal: r?.signal
|
|
211
|
-
}),
|
|
211
|
+
}), v = w.map(({ count: h, value: y }) => {
|
|
212
212
|
const m = t.subtypes?.find((I) => I.code === y)?.name;
|
|
213
213
|
return y != null && m ? {
|
|
214
214
|
count: h,
|
|
@@ -216,66 +216,66 @@ class re extends K {
|
|
|
216
216
|
name: m
|
|
217
217
|
} : void 0;
|
|
218
218
|
}).filter((h) => h != null);
|
|
219
|
-
this.allCategories =
|
|
219
|
+
this.allCategories = v;
|
|
220
220
|
}
|
|
221
221
|
return;
|
|
222
222
|
}
|
|
223
|
-
const { historicMoment: p, gdbVersion:
|
|
223
|
+
const { historicMoment: p, gdbVersion: F } = e, _ = new M({
|
|
224
224
|
cacheHint: b,
|
|
225
|
-
gdbVersion:
|
|
225
|
+
gdbVersion: F,
|
|
226
226
|
historicMoment: p,
|
|
227
227
|
relationshipId: l,
|
|
228
228
|
returnGeometry: !1,
|
|
229
229
|
objectIds: [a],
|
|
230
230
|
where: this._getRelationshipWhereClause(t)
|
|
231
|
-
}), c = await e.queryRelatedFeaturesCount(
|
|
231
|
+
}), c = await e.queryRelatedFeaturesCount(_, {
|
|
232
232
|
signal: r?.signal
|
|
233
233
|
});
|
|
234
234
|
this.allCategories = void 0, this.featureCount = c[a] || 0;
|
|
235
235
|
}
|
|
236
236
|
_getRelationshipWhereClause(e) {
|
|
237
|
-
const { activeCategory: t } = this, r = e.createQuery(),
|
|
238
|
-
return a &&
|
|
237
|
+
const { activeCategory: t } = this, r = e.createQuery(), s = "subtypeField" in e ? e.subtypeField : void 0, i = t && s ? `${s} = ${t.value}` : void 0, a = r.where;
|
|
238
|
+
return a && i ? `(${a}) AND (${i})` : a ?? i;
|
|
239
239
|
}
|
|
240
240
|
_sliceFeatures(e) {
|
|
241
241
|
const { showAllEnabled: t, displayCount: r } = this;
|
|
242
242
|
return t ? e : r ? e.slice(0, r) : [];
|
|
243
243
|
}
|
|
244
244
|
async _queryPage() {
|
|
245
|
-
const { relatedFeatures: e, featurePage: t, showAllEnabled: r, _queryPageAbortController:
|
|
246
|
-
!r || t < 2 || !
|
|
245
|
+
const { relatedFeatures: e, featurePage: t, showAllEnabled: r, _queryPageAbortController: s, featureCount: i } = this;
|
|
246
|
+
!r || t < 2 || !i || this.relatedLayer?.type === "subtype-group" && !this.activeCategory || e.addMany(await this._queryRelatedFeatures({ signal: s?.signal }));
|
|
247
247
|
}
|
|
248
248
|
async _queryRelatedFeatures(e) {
|
|
249
|
-
const { displayCount: t, featureCount: r, featurePage:
|
|
250
|
-
if (!
|
|
249
|
+
const { displayCount: t, featureCount: r, featurePage: s, featuresPerPage: i, layer: a, orderByFieldsFixedCasing: n, relatedLayer: l, relatedLayerKeyFields: d, relationshipId: b, showAllEnabled: p, supportsCacheHint: F } = this, { canQuery: _, objectId: c } = this;
|
|
250
|
+
if (!_ || !a || !l || c == null)
|
|
251
251
|
return [];
|
|
252
|
-
const
|
|
252
|
+
const C = p ? ((s - 1) * i + r) % r : 0, w = p ? i : t, v = l.objectIdField, h = "subtypeField" in l ? l.subtypeField : void 0, y = [
|
|
253
253
|
...n.map((u) => u.field),
|
|
254
254
|
...te(l),
|
|
255
255
|
...d,
|
|
256
|
-
|
|
256
|
+
v,
|
|
257
257
|
h
|
|
258
|
-
].filter((u) => u != null), m = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: j } = a, T = new
|
|
258
|
+
].filter((u) => u != null), m = n.map((u) => `${u.field} ${u.order}`), { historicMoment: I, gdbVersion: j } = a, T = new M({
|
|
259
259
|
orderByFields: m,
|
|
260
|
-
start:
|
|
261
|
-
num:
|
|
260
|
+
start: C,
|
|
261
|
+
num: w,
|
|
262
262
|
outFields: y,
|
|
263
|
-
cacheHint:
|
|
263
|
+
cacheHint: F,
|
|
264
264
|
historicMoment: I,
|
|
265
265
|
gdbVersion: j,
|
|
266
266
|
relationshipId: b,
|
|
267
267
|
returnGeometry: !1,
|
|
268
268
|
objectIds: [c],
|
|
269
269
|
where: this._getRelationshipWhereClause(l)
|
|
270
|
-
}),
|
|
270
|
+
}), $ = (await a.queryRelatedFeatures(T, {
|
|
271
271
|
signal: e?.signal
|
|
272
272
|
}))[c]?.features || [];
|
|
273
|
-
return l.type === "subtype-group" && h ?
|
|
274
|
-
const B = u.attributes[h],
|
|
275
|
-
u.sourceLayer =
|
|
276
|
-
}) :
|
|
273
|
+
return l.type === "subtype-group" && h ? $.forEach((u) => {
|
|
274
|
+
const B = u.attributes[h], x = l.findSublayerForSubtypeCode?.(B);
|
|
275
|
+
u.sourceLayer = x, u.layer = x;
|
|
276
|
+
}) : $.forEach((u) => {
|
|
277
277
|
u.sourceLayer = l, u.layer = l;
|
|
278
|
-
}),
|
|
278
|
+
}), $;
|
|
279
279
|
}
|
|
280
280
|
_selectCategory(e) {
|
|
281
281
|
const { flowItems: t } = this;
|
|
@@ -283,10 +283,13 @@ class re extends K {
|
|
|
283
283
|
}
|
|
284
284
|
_selectRecord(e) {
|
|
285
285
|
const { flowItems: t } = this;
|
|
286
|
-
|
|
286
|
+
if (!t)
|
|
287
|
+
return;
|
|
288
|
+
const r = this.useFeatureNextFlowItem ? L(A(e, o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`)) : L(A(e, o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`));
|
|
289
|
+
this._addFlowItem(r);
|
|
287
290
|
}
|
|
288
291
|
_addRelationshipFlowItem({ showAllEnabled: e = !1, activeCategory: t }) {
|
|
289
|
-
this._addFlowItem(
|
|
292
|
+
this._addFlowItem(L(A(t, o`<arcgis-feature-relationship .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} hide-description .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`)));
|
|
290
293
|
}
|
|
291
294
|
_showAllRecords() {
|
|
292
295
|
const { flowItems: e } = this;
|
|
@@ -301,17 +304,17 @@ class re extends K {
|
|
|
301
304
|
this._relatedFeatureIntersectionObserverNode.value && this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value);
|
|
302
305
|
}
|
|
303
306
|
_matchesFeature(e, t) {
|
|
304
|
-
const r = e?.graphic?.getObjectId(),
|
|
305
|
-
return r != null &&
|
|
307
|
+
const r = e?.graphic?.getObjectId(), s = t?.getObjectId();
|
|
308
|
+
return r != null && s != null && r === s;
|
|
306
309
|
}
|
|
307
310
|
_setRelatedFeaturesViewModels() {
|
|
308
|
-
const { relatedFeatures: e, relatedFeatureViewModels: t, map: r, view:
|
|
311
|
+
const { relatedFeatures: e, relatedFeatureViewModels: t, map: r, view: s, spatialReference: i, timeZone: a } = this;
|
|
309
312
|
e?.filter(Boolean).forEach((n) => {
|
|
310
313
|
t.some((d) => this._matchesFeature(d, n)) || t.add(new Y({
|
|
311
314
|
abilities: { relationshipContent: !1 },
|
|
312
315
|
map: r,
|
|
313
|
-
view:
|
|
314
|
-
spatialReference:
|
|
316
|
+
view: s,
|
|
317
|
+
spatialReference: i,
|
|
315
318
|
timeZone: a,
|
|
316
319
|
graphic: n
|
|
317
320
|
}));
|
|
@@ -339,15 +342,15 @@ class re extends K {
|
|
|
339
342
|
return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`;
|
|
340
343
|
}
|
|
341
344
|
_renderCategory(e) {
|
|
342
|
-
const { count: t, name: r } = e,
|
|
343
|
-
return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${() => this._selectCategory(e)}><calcite-chip .label=${
|
|
345
|
+
const { count: t, name: r } = e, s = S(t);
|
|
346
|
+
return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${r} @calciteListItemSelect=${() => this._selectCategory(e)}><calcite-chip .label=${s} scale=s slot=content-end>${s}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`;
|
|
344
347
|
}
|
|
345
348
|
_renderRelatedFeature(e) {
|
|
346
|
-
const { itemDescriptionFieldName: t, values: r } = this, { formattedAttributes:
|
|
349
|
+
const { itemDescriptionFieldName: t, values: r } = this, { formattedAttributes: s, state: i, heading: a } = e, n = {
|
|
347
350
|
...r,
|
|
348
|
-
...
|
|
351
|
+
...s?.global
|
|
349
352
|
}, l = (t && n?.[t]) ?? "";
|
|
350
|
-
return o`<calcite-list-item class=${
|
|
353
|
+
return o`<calcite-list-item class=${D(Q("list-item", { "list-item-hidden": i === "loading" }))} .description=${N(l.toString())} .label=${N(a)} @calciteListItemSelect=${() => this._selectRecord(e)}><div slot=heading><div .innerHTML=${O.sanitize(a ?? "") ?? ""}></div></div><div slot=description><div .innerHTML=${O.sanitize(l ?? "") ?? ""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`;
|
|
351
354
|
}
|
|
352
355
|
_renderShowAllListItem() {
|
|
353
356
|
return this.displayShowAllButton ? o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${() => this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>` : null;
|
|
@@ -364,7 +367,7 @@ class re extends K {
|
|
|
364
367
|
}
|
|
365
368
|
_renderRelatedFeatures() {
|
|
366
369
|
const { displayListItems: e } = this, { state: t } = this;
|
|
367
|
-
return o`<div class=${
|
|
370
|
+
return o`<div class=${D(Q("list", {
|
|
368
371
|
"list-querying": t === "querying"
|
|
369
372
|
}))}>${e ? this._renderList() : t === "ready" ? this._renderNoRelatedFeaturesMessage() : null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`;
|
|
370
373
|
}
|