@arcgis/common-components 5.1.0-next.98 → 5.1.0
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/README.md +2 -2
- package/dist/cdn/2PVT6EXO.js +2 -0
- package/dist/cdn/{DDJDHAHT.js → 4QMKUU52.js} +1 -1
- package/dist/cdn/{O3CBCQNL.js → 6VNQBMLG.js} +1 -1
- package/dist/cdn/CL22U6KJ.js +2 -0
- package/dist/cdn/{MNN3QF54.js → F656IS64.js} +1 -1
- package/dist/cdn/{OQF4LYVE.js → F6JAAKQK.js} +1 -1
- package/dist/cdn/{JRF33N6C.js → HUFWK3KQ.js} +1 -1
- package/dist/cdn/{JJZBCHU4.js → HXMYYN6V.js} +2 -2
- package/dist/cdn/{GPVWNUMW.js → I6VIEGIZ.js} +1 -1
- package/dist/cdn/IHF3GKDG.js +2 -0
- package/dist/cdn/{YZGTCNEQ.js → KLJNUBIC.js} +1 -1
- package/dist/cdn/KWGVNEYU.js +2 -0
- package/dist/cdn/L4DAWBCA.js +2 -0
- package/dist/cdn/{P4CF7V4U.js → PKYZFAIY.js} +1 -1
- package/dist/cdn/{GSNPEBGQ.js → PP2HCXTR.js} +2 -2
- package/dist/cdn/S3PANRN4.js +2 -0
- package/dist/cdn/{WG5GA6QX.js → U4GXIFGD.js} +1 -1
- package/dist/cdn/UAC6OWZ2.js +2 -0
- package/dist/cdn/VHYBQSUR.js +2 -0
- package/dist/cdn/{QEPJM6XG.js → Y77B4DB6.js} +1 -1
- package/dist/cdn/{3Y4H3CAQ.js → Z7WR3HDB.js} +1 -1
- package/dist/cdn/{GFUGR2W7.js → ZJXP3TWP.js} +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/{spatial-reference-picker → coordinate-system-picker}/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/assets/field-info/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/layer-utils.js +78 -0
- package/dist/chunks/runtime.js +3 -3
- package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +1 -0
- package/dist/components/arcgis-color-input/customElement.js +11 -8
- package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/customElement.d.ts +8 -4
- package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/customElement.js +6 -5
- package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
- package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/customElement.d.ts +2 -2
- package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/customElement.js +8 -8
- package/dist/components/arcgis-field-info/customElement.d.ts +2 -0
- package/dist/components/arcgis-field-info/customElement.js +211 -208
- package/dist/components/arcgis-field-info/utils/basic.d.ts +23 -17
- package/dist/components/arcgis-field-pick-list/customElement.js +72 -75
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +19 -17
- package/dist/components/arcgis-picker-input/customElement.d.ts +6 -2
- package/dist/components/arcgis-picker-input/customElement.js +7 -7
- package/dist/components/arcgis-slider/customElement.js +48 -48
- package/dist/components/arcgis-ticks/customElement.js +21 -21
- package/dist/components/arcgis-unique-values-list/customElement.js +73 -72
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +19 -12
- 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 -20
- package/dist/loader.js +5 -5
- package/dist/types/lumina.d.ts +12 -12
- package/dist/types/preact.d.ts +14 -14
- package/dist/types/react.d.ts +16 -16
- package/dist/types/stencil.d.ts +12 -12
- package/package.json +8 -8
- package/dist/cdn/43KGVFBF.js +0 -2
- package/dist/cdn/B43M633Q.js +0 -2
- package/dist/cdn/H74W6KYI.js +0 -2
- package/dist/cdn/LVSH5I3Q.js +0 -2
- package/dist/cdn/MHJWVKG5.js +0 -2
- package/dist/cdn/O6ZASYX6.js +0 -2
- package/dist/cdn/TTV4Z2RR.js +0 -2
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +0 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +0 -1
- package/dist/components/arcgis-spatial-reference-picker/index.js +0 -3
- /package/dist/cdn/assets/{spatial-reference-picker → coordinate-system-picker}/t9n/messages.en-US.json +0 -0
- /package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/index.d.ts +0 -0
- /package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/index.d.ts +0 -0
- /package/dist/components/{arcgis-spatial-reference-picker-tree → arcgis-coordinate-system-picker-tree}/index.js +0 -0
|
@@ -1,22 +1,28 @@
|
|
|
1
1
|
import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
|
|
2
|
-
import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
|
|
3
|
-
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
4
|
-
import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
|
|
5
|
-
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
6
|
-
import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
|
|
7
|
-
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
8
|
-
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
9
2
|
import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
|
|
10
|
-
import type
|
|
11
|
-
import type
|
|
12
|
-
import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
|
|
13
|
-
import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
|
|
14
|
-
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
15
|
-
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
16
|
-
import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
|
|
3
|
+
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
4
|
+
import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
|
|
17
5
|
import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
|
|
6
|
+
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
7
|
+
import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
|
|
8
|
+
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
9
|
+
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
10
|
+
import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
|
|
11
|
+
import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
|
|
12
|
+
import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
|
|
13
|
+
import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
|
|
14
|
+
import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
|
|
15
|
+
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
16
|
+
import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
|
|
17
|
+
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
18
|
+
import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
|
|
18
19
|
import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
19
|
-
import type
|
|
20
|
+
import type DimensionFeatureLayer from "@arcgis/core/layers/DimensionFeatureLayer.js";
|
|
21
|
+
import type AnnotationFeatureLayer from "@arcgis/core/layers/AnnotationFeatureLayer.js";
|
|
20
22
|
|
|
21
|
-
/**
|
|
22
|
-
|
|
23
|
+
/**
|
|
24
|
+
* All supported layer types
|
|
25
|
+
*
|
|
26
|
+
* @internal
|
|
27
|
+
*/
|
|
28
|
+
export type FieldInfoLayer = AnnotationFeatureLayer | CatalogFootprintLayer | CatalogLayer | CSVLayer | DimensionFeatureLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { createRef as
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as w } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as $, createEvent as r, renderElement as y, nothing as h, safeStyleMap as u, safeClassMap as v } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as a, ref as c } from "lit/directives/ref.js";
|
|
6
6
|
import { html as l, css as C } from "lit";
|
|
7
|
-
import { Task as
|
|
8
|
-
import { log as
|
|
9
|
-
import { F as
|
|
10
|
-
import { i as
|
|
11
|
-
import { u as
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
class
|
|
7
|
+
import { Task as S } from "@lit/task";
|
|
8
|
+
import { log as f, composeMissingPropertyMessage as x } from "@arcgis/toolkit/log";
|
|
9
|
+
import { F as g } from "../../chunks/internal-types.js";
|
|
10
|
+
import { i as b } from "../../chunks/commonFunctions.js";
|
|
11
|
+
import { u as k } from "../../chunks/useT9n.js";
|
|
12
|
+
const n = /* @__PURE__ */ new Map();
|
|
13
|
+
n.set("oid", "key");
|
|
14
|
+
n.set("guid", "key");
|
|
15
|
+
n.set("global-id", "key");
|
|
16
|
+
n.set("blob", "binary");
|
|
17
|
+
n.set("integer", "integer");
|
|
18
|
+
n.set("small-integer", "integer");
|
|
19
|
+
n.set("big-integer", "integer");
|
|
20
|
+
n.set("single", "number");
|
|
21
|
+
n.set("double", "number");
|
|
22
|
+
n.set("long", "number");
|
|
23
|
+
n.set("number", "number");
|
|
24
|
+
n.set("date", "date-time");
|
|
25
|
+
n.set("date-only", "calendar");
|
|
26
|
+
n.set("time-only", "clock");
|
|
27
|
+
n.set("timestamp-offset", "time-zone");
|
|
28
|
+
n.set("string", "string");
|
|
29
|
+
const L = ({ fieldType: m }) => l`<calcite-icon scale=s .icon=${n.get(m)}></calcite-icon>`, B = C`.panel{min-height:250px}.content{max-height:50vh}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`;
|
|
30
|
+
class I extends $ {
|
|
31
31
|
constructor() {
|
|
32
|
-
super(...arguments), this._messages =
|
|
32
|
+
super(...arguments), this._messages = k({ blocking: !0 }), this.popoverNode = a(), this.listNode = a(), this.flowElement = a(), this.panelElement = a(), this.dropdownNode = a(), this.fieldInfoFlowItemEl = a(), this.allLists = [], this.filterText = "", this.panelCutOffHeight = 0, this._propWatcherTask = new S(this, {
|
|
33
33
|
task: async ([e]) => {
|
|
34
|
-
if (!this.listOnly && !
|
|
35
|
-
throw
|
|
34
|
+
if (!this.listOnly && !b(e?.refElement))
|
|
35
|
+
throw f("error", this, x("popoverProps")), new Error();
|
|
36
36
|
this._propWatcherTask.autoRun = !1;
|
|
37
37
|
},
|
|
38
38
|
args: () => [this.popoverProps]
|
|
39
|
-
}), this.fields = [], this.selectedFields = [], this.listOnly = !1, this.showFieldInfo = !1, this.showFieldTypeIcon = !1, this.showFieldName = !1, this.showDescription = !1, this.showSelectionAll = !1, this.showCancel = !0, this.hideCancel = !1, this.showSort = !0, this.hideSort = !1, this.showFilterLength = 10, this.multiple = !1, this.sortBy = "default", this.groupFieldsAndExpressions = !1, this.arcgisChange =
|
|
39
|
+
}), this.fields = [], this.selectedFields = [], this.listOnly = !1, this.showFieldInfo = !1, this.showFieldTypeIcon = !1, this.showFieldName = !1, this.showDescription = !1, this.showSelectionAll = !1, this.showCancel = !0, this.hideCancel = !1, this.showSort = !0, this.hideSort = !1, this.showFilterLength = 10, this.multiple = !1, this.sortBy = "default", this.groupFieldsAndExpressions = !1, this.arcgisChange = r(), this.arcgisClose = r(), this.arcgisFieldPickListChange = r(), this.arcgisFieldPickListDismissed = r(), this.arcgisFieldPickListSortByChange = r(), this.arcgisSortByChange = r(), this.arcgisEditField = r(), this.arcgisDeleteField = r();
|
|
40
40
|
}
|
|
41
41
|
static {
|
|
42
42
|
this.properties = { lastSortBy: 16, filterFields: 16, mapView: 0, view: 0, layer: 0, fields: 0, selectedFields: 0, listOnly: 5, popoverProps: 0, showFieldInfo: 5, showFieldTypeIcon: 5, showFieldName: 5, showDescription: 5, showSelectionAll: 5, showCancel: 5, hideCancel: 5, showSort: 5, hideSort: 5, showFilterLength: 9, multiple: 5, heading: 1, okBtnText: 1, filterPlaceholderText: 1, filterNoResultsText: 1, sortBy: 1, groupFieldsAndExpressions: 5, fieldsGroupHeading: 1, expressionsGroupHeading: 1, customExpressionCheck: 0 };
|
|
43
43
|
}
|
|
44
44
|
static {
|
|
45
|
-
this.styles =
|
|
45
|
+
this.styles = B;
|
|
46
46
|
}
|
|
47
47
|
async reposition() {
|
|
48
48
|
await this.popoverNode.value?.reposition();
|
|
@@ -56,7 +56,7 @@ class E extends w {
|
|
|
56
56
|
this.panelElement.value && (this.panelElement.value.disabled = e);
|
|
57
57
|
}
|
|
58
58
|
load() {
|
|
59
|
-
!this.view && this.mapView && (this.view = this.mapView), !this.showCancel && !this.hideCancel && (this.hideCancel = !0), !this.showSort && !this.hideSort && (this.hideSort = !0), this.listOnly && this.showFieldInfo && (this.showFieldInfo = !1,
|
|
59
|
+
!this.view && this.mapView && (this.view = this.mapView), !this.showCancel && !this.hideCancel && (this.hideCancel = !0), !this.showSort && !this.hideSort && (this.hideSort = !0), this.listOnly && this.showFieldInfo && (this.showFieldInfo = !1, f("info", this, "showFieldInfo is not supported if listOnly is true.")), !this.multiple && this.selectedFields.length > 1 && (this.selectedFields = [this.selectedFields[0]]), this.lastSortBy = this.sortBy ?? this.lastSortBy, this.updateGroupedLists();
|
|
60
60
|
}
|
|
61
61
|
willUpdate(e) {
|
|
62
62
|
(e.has("fields") || e.has("lastSortBy") || e.has("customExpressionCheck")) && this.updateGroupedLists();
|
|
@@ -89,10 +89,10 @@ class E extends w {
|
|
|
89
89
|
getSortedList(e) {
|
|
90
90
|
let t = [...e];
|
|
91
91
|
const s = t.filter((i) => i.type === "none");
|
|
92
|
-
return t = t.filter((i) => i.type !== "none"), this.lastSortBy === "display" ? t.sort((i,
|
|
92
|
+
return t = t.filter((i) => i.type !== "none"), this.lastSortBy === "display" ? t.sort((i, o) => i.alias.localeCompare(o.alias)) : this.lastSortBy === "field" ? t.sort((i, o) => i.name.localeCompare(o.name)) : this.lastSortBy === "type" && t.sort((i, o) => i.type.localeCompare(o.type)), t = t.concat(s), t;
|
|
93
93
|
}
|
|
94
94
|
isExpression(e) {
|
|
95
|
-
return this.customExpressionCheck ? this.customExpressionCheck(e) : e.name.includes(
|
|
95
|
+
return this.customExpressionCheck ? this.customExpressionCheck(e) : e.name.includes(g.expression);
|
|
96
96
|
}
|
|
97
97
|
canDeselectAll() {
|
|
98
98
|
const e = this.getAllFields();
|
|
@@ -103,7 +103,7 @@ class E extends w {
|
|
|
103
103
|
}
|
|
104
104
|
showFieldInfoCheck(e) {
|
|
105
105
|
const { layer: t } = this;
|
|
106
|
-
return this.showFieldInfo ? !(!t || this.isExpression(e) || e.name.includes(
|
|
106
|
+
return this.showFieldInfo ? !(!t || this.isExpression(e) || e.name.includes(g.relationship) || e.type === "none") : !1;
|
|
107
107
|
}
|
|
108
108
|
updateGroupedLists() {
|
|
109
109
|
if (!this.fields)
|
|
@@ -132,11 +132,11 @@ class E extends w {
|
|
|
132
132
|
];
|
|
133
133
|
}
|
|
134
134
|
addFieldInfoFlowItem(e, t) {
|
|
135
|
-
const s = this.flowElement.value, i =
|
|
136
|
-
|
|
135
|
+
const s = this.flowElement.value, i = y(l`<calcite-flow-item selected .heading=${e.alias ?? e.name} .description=${e.name} class="panel" style=${u(this.panelCutOffHeight > 0 ? `max-height: ${this.panelCutOffHeight}px` : "max-height: 50vh")} @calciteFlowItemBack=${(o) => {
|
|
136
|
+
o.currentTarget.remove(), this.fieldInfoFlowItemEl.value.selected = !1, this.panelElement.value.selected = !0, setTimeout(() => {
|
|
137
137
|
t.setFocus();
|
|
138
138
|
}, 300);
|
|
139
|
-
}} ${
|
|
139
|
+
}} ${c(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang ?? h} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);
|
|
140
140
|
s.appendChild(i), this.panelElement.value.selected = !1, this.fieldInfoFlowItemEl?.value.setFocus();
|
|
141
141
|
}
|
|
142
142
|
usingCustomGroups() {
|
|
@@ -145,6 +145,19 @@ class E extends w {
|
|
|
145
145
|
getAllFields() {
|
|
146
146
|
return this.allLists.map((e) => e.fields).flat();
|
|
147
147
|
}
|
|
148
|
+
setSortBy(e) {
|
|
149
|
+
this.lastSortBy = e, this.updateGroupedLists(), this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy), this.reorderSelectedFieldsByCurrentListOrder() && (this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields }));
|
|
150
|
+
}
|
|
151
|
+
reorderSelectedFieldsByCurrentListOrder() {
|
|
152
|
+
if (!this.selectedFields.length)
|
|
153
|
+
return !1;
|
|
154
|
+
const e = this.getAllFields().map((o) => o.name), t = new Set(this.selectedFields), s = e.filter((o) => t.has(o)), i = (
|
|
155
|
+
// adding/removing fields
|
|
156
|
+
s.length !== this.selectedFields.length || // reordering fields
|
|
157
|
+
s.some((o, p) => o !== this.selectedFields[p])
|
|
158
|
+
);
|
|
159
|
+
return i && (this.selectedFields = [...s]), i;
|
|
160
|
+
}
|
|
148
161
|
render() {
|
|
149
162
|
return this._propWatcherTask.render({
|
|
150
163
|
complete: () => {
|
|
@@ -153,24 +166,24 @@ class E extends w {
|
|
|
153
166
|
const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.popoverProps;
|
|
154
167
|
return this.el.classList.add("js-app-flyout"), l`<calcite-popover .placement=${t.placement ?? "leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance ?? -Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding ?? 0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading ?? (this.multiple ? this._messages.headerSelect : this._messages.header) ?? ""} @calcitePopoverClose=${() => {
|
|
155
168
|
this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
|
|
156
|
-
}} ${
|
|
169
|
+
}} ${c(this.popoverNode)}><calcite-flow style=${u({
|
|
157
170
|
width: `${t.popoverWidth ?? t.refElement.getBoundingClientRect().width}px`,
|
|
158
171
|
...t.maxHeight && { maxHeight: t.maxHeight }
|
|
159
|
-
})} ${
|
|
172
|
+
})} ${c(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${() => {
|
|
160
173
|
this.arcgisClose.emit(), this.arcgisFieldPickListDismissed.emit();
|
|
161
|
-
}} ${
|
|
174
|
+
}} ${c(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple || !this.hideCancel) && l`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple && !this.hideCancel ? l`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>` : l`${this.renderAddButton()}${this.renderCancelButton()}`}</div>` || ""}</calcite-flow-item></calcite-flow></calcite-popover>`;
|
|
162
175
|
},
|
|
163
176
|
error: () => ""
|
|
164
177
|
});
|
|
165
178
|
}
|
|
166
179
|
renderList() {
|
|
167
180
|
const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.getAllFields(), s = t.length >= this.showFilterLength;
|
|
168
|
-
return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${
|
|
169
|
-
const i = this.listNode.value.selectedItems.map((
|
|
170
|
-
this.selectedFields = [.../* @__PURE__ */ new Set([...
|
|
181
|
+
return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${v(this.listOnly ? "" : "content")} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholderText ?? this._messages.filter} @calciteListChange=${() => {
|
|
182
|
+
const i = this.listNode.value.selectedItems.map((d) => d.value), o = this.selectedFields.filter((d) => i.includes(d)), p = i.filter((d) => !this.selectedFields.includes(d));
|
|
183
|
+
this.selectedFields = [.../* @__PURE__ */ new Set([...o, ...p])], this.reorderSelectedFieldsByCurrentListOrder(), this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields }), this.multiple || (this.arcgisClose.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListDismissed.emit({ selectedFields: this.selectedFields }));
|
|
171
184
|
}} @calciteListFilter=${(i) => {
|
|
172
|
-
i.stopPropagation(), this.filterFields = this.listNode.value.filteredItems?.map((
|
|
173
|
-
}} ${
|
|
185
|
+
i.stopPropagation(), this.filterFields = this.listNode.value.filteredItems?.map((o) => o.value), this.filterText = this.listNode.value.filterText;
|
|
186
|
+
}} ${c(this.listNode)}>${this.renderSortButton()}<slot name=content-center></slot>${this.multiple && this.showSelectionAll && (!s || !this.filterText || this.filterFields?.length) ? this.renderSelectionButton() : null}${this.renderListItems()}</calcite-list>` : l`<slot name=no-fields></slot>`}${this.filterFields && !this.filterFields.length && this.listNode.value && this.filterNoResultsText?.length !== 0 ? l`<div class="no-match-text">${this.filterNoResultsText ?? this._messages.noMatches}</div>` : null}`;
|
|
174
187
|
}
|
|
175
188
|
renderSortButton() {
|
|
176
189
|
const e = this.getAllFields();
|
|
@@ -179,23 +192,7 @@ class E extends w {
|
|
|
179
192
|
const s = e.every((i) => !!i.type);
|
|
180
193
|
return l`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed .disabled=${this.filterFields ? this.filterFields.length < 4 : !1} @calciteDropdownOpen=${() => {
|
|
181
194
|
this.observer?.disconnect(), this.popoverNode.value && this.observer?.observe(this.popoverNode.value, { attributes: !0 });
|
|
182
|
-
}} @calciteDropdownClose=${() => this.observer?.disconnect()} ${
|
|
183
|
-
this.lastSortBy = "default", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
184
|
-
}} @keydown=${(i) => {
|
|
185
|
-
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "default", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
186
|
-
}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy === "display"} @click=${() => {
|
|
187
|
-
this.lastSortBy = "display", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
188
|
-
}} @keydown=${(i) => {
|
|
189
|
-
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "display", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
190
|
-
}}>${this._messages.displayName}</calcite-dropdown-item>${s && l`<calcite-dropdown-item .selected=${this.lastSortBy === "type"} @click=${() => {
|
|
191
|
-
this.lastSortBy = "type", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
192
|
-
}} @keydown=${(i) => {
|
|
193
|
-
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "type", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
194
|
-
}}>${this._messages.type}</calcite-dropdown-item>` || ""}<calcite-dropdown-item .selected=${this.lastSortBy === "field"} @click=${() => {
|
|
195
|
-
this.lastSortBy = "field", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy);
|
|
196
|
-
}} @keydown=${(i) => {
|
|
197
|
-
i.stopPropagation(), (i.key === " " || i.key === "Enter") && (this.lastSortBy = "field", this.arcgisSortByChange.emit(this.lastSortBy), this.arcgisFieldPickListSortByChange.emit(this.lastSortBy));
|
|
198
|
-
}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
|
|
195
|
+
}} @calciteDropdownClose=${() => this.observer?.disconnect()} ${c(this.dropdownNode)}><calcite-action slot=trigger .text=${this._messages.sort ?? ""} title=${this._messages.sort ?? h}><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy === "default"} @calciteDropdownItemSelect=${() => this.setSortBy("default")}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy === "display"} @calciteDropdownItemSelect=${() => this.setSortBy("display")}>${this._messages.displayName}</calcite-dropdown-item>${s && l`<calcite-dropdown-item .selected=${this.lastSortBy === "type"} @calciteDropdownItemSelect=${() => this.setSortBy("type")}>${this._messages.type}</calcite-dropdown-item>` || ""}<calcite-dropdown-item .selected=${this.lastSortBy === "field"} @calciteDropdownItemSelect=${() => this.setSortBy("field")}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
|
|
199
196
|
}
|
|
200
197
|
renderSelectionButton() {
|
|
201
198
|
return l`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${() => {
|
|
@@ -207,7 +204,7 @@ class E extends w {
|
|
|
207
204
|
const t = this.getAllFields();
|
|
208
205
|
this.selectedFields = t.map((s) => s.name);
|
|
209
206
|
}
|
|
210
|
-
this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
|
|
207
|
+
this.reorderSelectedFieldsByCurrentListOrder(), this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
|
|
211
208
|
}}>${this.canDeselectAll() ? this._messages.deselectAll : this._messages.selectAll}</calcite-button></div>`;
|
|
212
209
|
}
|
|
213
210
|
renderListItems() {
|
|
@@ -216,7 +213,7 @@ class E extends w {
|
|
|
216
213
|
}
|
|
217
214
|
renderCalciteListItem(e) {
|
|
218
215
|
const t = this.showFieldInfoCheck(e), s = this.showFieldTypeIcon && !!e.type;
|
|
219
|
-
return
|
|
216
|
+
return w(e.name, l`<calcite-list-item .label=${e.alias || e.name} .description=${(() => {
|
|
220
217
|
if (this.showFieldName && e.hideFieldName !== !0)
|
|
221
218
|
return `{${e.name}}`;
|
|
222
219
|
if (this.showDescription && e.hideDescription !== !0 && e.description)
|
|
@@ -224,25 +221,25 @@ class E extends w {
|
|
|
224
221
|
})()} .value=${e.name} .selected=${!this.multiple && e.name === this.selectedFields[0] || this.multiple && this.selectedFields.includes(e.name)} .metadata=${{
|
|
225
222
|
label: e.alias,
|
|
226
223
|
fieldName: e.name
|
|
227
|
-
}}>${s && l`<div slot=actions-end class="field-icons">${
|
|
224
|
+
}}>${s && l`<div slot=actions-end class="field-icons">${L({ fieldType: e.type })}</div>` || ""}${this.renderInfoAction(e, t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`);
|
|
228
225
|
}
|
|
229
226
|
renderInfoAction(e, t) {
|
|
230
227
|
const { _messages: s } = this;
|
|
231
|
-
return t ? l`<calcite-action slot=actions-end .text=${s.info} title=${s.info ??
|
|
228
|
+
return t ? l`<calcite-action slot=actions-end .text=${s.info} title=${s.info ?? h} scale=s icon=information @click=${(i) => {
|
|
232
229
|
i.stopPropagation();
|
|
233
|
-
const
|
|
234
|
-
this.addFieldInfoFlowItem(e,
|
|
230
|
+
const o = i.currentTarget;
|
|
231
|
+
this.addFieldInfoFlowItem(e, o);
|
|
235
232
|
}}></calcite-action>` : "";
|
|
236
233
|
}
|
|
237
234
|
renderEditAction(e) {
|
|
238
235
|
const { _messages: t } = this;
|
|
239
|
-
return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ??
|
|
236
|
+
return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ?? h} scale=s icon=pencil @click=${(s) => {
|
|
240
237
|
s.stopPropagation(), this.arcgisEditField.emit({ fieldName: e.name });
|
|
241
238
|
}}></calcite-action>` : "";
|
|
242
239
|
}
|
|
243
240
|
renderDeleteAction(e) {
|
|
244
241
|
const { _messages: t } = this;
|
|
245
|
-
return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ??
|
|
242
|
+
return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ?? h} scale=s icon=trash @click=${(s) => {
|
|
246
243
|
s.stopPropagation(), this.arcgisDeleteField.emit({ fieldName: e.name });
|
|
247
244
|
}}></calcite-action>` : "";
|
|
248
245
|
}
|
|
@@ -257,7 +254,7 @@ class E extends w {
|
|
|
257
254
|
}}>${this._messages.cancel}</calcite-button>`;
|
|
258
255
|
}
|
|
259
256
|
}
|
|
260
|
-
|
|
257
|
+
F("arcgis-field-pick-list", I);
|
|
261
258
|
export {
|
|
262
|
-
|
|
259
|
+
I as ArcgisFieldPickList
|
|
263
260
|
};
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
|
|
2
|
-
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
3
|
-
import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
|
|
4
1
|
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
5
|
-
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
6
2
|
import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
|
|
7
|
-
import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
|
|
8
|
-
import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
|
|
9
|
-
import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
|
|
10
|
-
import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
|
|
11
|
-
import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
|
|
12
|
-
import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
|
|
13
|
-
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
14
|
-
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
15
|
-
import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
|
|
16
|
-
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
17
|
-
import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
|
|
18
|
-
import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
19
3
|
import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
|
|
4
|
+
import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
5
|
+
import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
|
|
6
|
+
import type FeatureLayer from "@arcgis/core/layers/FeatureLayer.js";
|
|
7
|
+
import type GeoJSONLayer from "@arcgis/core/layers/GeoJSONLayer.js";
|
|
8
|
+
import type ImageryLayer from "@arcgis/core/layers/ImageryLayer.js";
|
|
9
|
+
import type ImageryTileLayer from "@arcgis/core/layers/ImageryTileLayer.js";
|
|
10
|
+
import type KnowledgeGraphSublayer from "@arcgis/core/layers/knowledgeGraph/KnowledgeGraphSublayer.js";
|
|
11
|
+
import type OGCFeatureLayer from "@arcgis/core/layers/OGCFeatureLayer.js";
|
|
12
|
+
import type OrientedImageryLayer from "@arcgis/core/layers/OrientedImageryLayer.js";
|
|
13
|
+
import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
|
|
14
|
+
import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
|
|
15
|
+
import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
|
|
16
|
+
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
17
|
+
import type VoxelLayer from "@arcgis/core/layers/VoxelLayer.js";
|
|
18
|
+
import type WCSLayer from "@arcgis/core/layers/WCSLayer.js";
|
|
19
|
+
import type WFSLayer from "@arcgis/core/layers/WFSLayer.js";
|
|
20
|
+
import type DimensionFeatureLayer from "@arcgis/core/layers/DimensionFeatureLayer.js";
|
|
21
|
+
import type AnnotationFeatureLayer from "@arcgis/core/layers/AnnotationFeatureLayer.js";
|
|
20
22
|
|
|
21
23
|
/**
|
|
22
24
|
* All supported layer types
|
|
23
25
|
*
|
|
24
26
|
* @internal
|
|
25
27
|
*/
|
|
26
|
-
export type FieldPickListLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
28
|
+
export type FieldPickListLayer = AnnotationFeatureLayer | CatalogFootprintLayer | CatalogLayer | CSVLayer | DimensionFeatureLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
@@ -29,8 +29,12 @@ export abstract class ArcgisPickerInput extends LitElement {
|
|
|
29
29
|
accessor label: string;
|
|
30
30
|
/** Convenience prop to specify common popover props. */
|
|
31
31
|
accessor popoverProps: PopoverProps | undefined;
|
|
32
|
-
/**
|
|
33
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Close the component.
|
|
34
|
+
*
|
|
35
|
+
* @param options
|
|
36
|
+
*/
|
|
37
|
+
close(options?: { focus: boolean; }): Promise<void>;
|
|
34
38
|
/** Set focus on the component. */
|
|
35
39
|
setFocus(): Promise<void>;
|
|
36
40
|
/** Emitted when the component has been closed. */
|
|
@@ -14,8 +14,8 @@ class d extends a {
|
|
|
14
14
|
static {
|
|
15
15
|
this.styles = p;
|
|
16
16
|
}
|
|
17
|
-
async close() {
|
|
18
|
-
this.onPopoverClose();
|
|
17
|
+
async close(e) {
|
|
18
|
+
this.onPopoverClose(e);
|
|
19
19
|
}
|
|
20
20
|
async setFocus() {
|
|
21
21
|
this.buttonEl?.focus();
|
|
@@ -30,16 +30,16 @@ class d extends a {
|
|
|
30
30
|
this.panelEl.value.closed = !1, this.arcgisPopoverOpen.emit(), e.stopPropagation();
|
|
31
31
|
}
|
|
32
32
|
handlePopoverKeyUp({ key: e }) {
|
|
33
|
-
e === "Escape" && this.onPopoverClose();
|
|
33
|
+
e === "Escape" && this.onPopoverClose({ focus: !0 });
|
|
34
34
|
}
|
|
35
35
|
onPopoverOpen(e) {
|
|
36
36
|
this.open && (e.composedPath().includes(this.el) || (this.open = !1));
|
|
37
37
|
}
|
|
38
|
-
onPopoverClose() {
|
|
39
|
-
this.open = !1, this.arcgisPopoverClose.emit(), setTimeout(() => this.buttonEl?.focus(), 300);
|
|
38
|
+
onPopoverClose(e) {
|
|
39
|
+
this.open = !1, this.arcgisPopoverClose.emit(), e?.focus && setTimeout(() => this.buttonEl?.focus(), 300);
|
|
40
40
|
}
|
|
41
41
|
handlePanelClose(e) {
|
|
42
|
-
e.stopPropagation(), this.onPopoverClose();
|
|
42
|
+
e.stopPropagation(), this.onPopoverClose({ focus: !0 });
|
|
43
43
|
}
|
|
44
44
|
handleButtonClick() {
|
|
45
45
|
this.open = !this.open, this.open && setTimeout(() => {
|
|
@@ -48,7 +48,7 @@ class d extends a {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const { popoverProps: e } = this;
|
|
51
|
-
return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance ?? 0} .offsetSkidding=${e?.offsetSkidding ?? 0} .flipDisabled=${e?.flipDisabled ?? !1} .open=${this.disabled ? !1 : this.open} .overlayPositioning=${e?.overlayPositioning ?? "fixed"} .placement=${e?.placement ?? "bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} @calcitePopoverClose=${(s) => s.stopPropagation()} .referenceElement=${e?.refElement ?? this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${r(e?.maxHeight ? { maxHeight: e.maxHeight } : void 0)} @calcitePanelClose=${this.handlePanelClose} ${t(this.panelEl)}><slot name=content></slot><calcite-button appearance=solid slot=footer width=full .label=${this.intlDone} @click=${this.onPopoverClose}>${this.intlDone}</calcite-button></calcite-panel></calcite-popover><div class="container"><div class="preview" ${t(this.setPreviewContainerRef)}><button .disabled=${this.disabled} @click=${this.handleButtonClick} type=button .ariaLabel=${this.label} ${t(this.setButtonRef)}><slot name=preview></slot>${this.iconEnd ? o`<calcite-icon .icon=${this.iconEnd} scale=s></calcite-icon>` : null}</button></div><slot name=content-end></slot></div>`;
|
|
51
|
+
return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance ?? 0} .offsetSkidding=${e?.offsetSkidding ?? 0} .flipDisabled=${e?.flipDisabled ?? !1} .open=${this.disabled ? !1 : this.open} .overlayPositioning=${e?.overlayPositioning ?? "fixed"} .placement=${e?.placement ?? "bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} @calcitePopoverClose=${(s) => s.stopPropagation()} .referenceElement=${e?.refElement ?? this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${r(e?.maxHeight ? { maxHeight: e.maxHeight } : void 0)} @calcitePanelClose=${this.handlePanelClose} ${t(this.panelEl)}><slot name=content></slot><calcite-button appearance=solid slot=footer width=full .label=${this.intlDone} @click=${() => this.onPopoverClose({ focus: !0 })}>${this.intlDone}</calcite-button></calcite-panel></calcite-popover><div class="container"><div class="preview" ${t(this.setPreviewContainerRef)}><button .disabled=${this.disabled} @click=${this.handleButtonClick} type=button .ariaLabel=${this.label} ${t(this.setButtonRef)}><slot name=preview></slot>${this.iconEnd ? o`<calcite-icon .icon=${this.iconEnd} scale=s></calcite-icon>` : null}</button></div><slot name=content-end></slot></div>`;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
n("arcgis-picker-input", d);
|