@arcgis/common-components 5.1.0-next.98 → 5.2.0-next.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/{3Y4H3CAQ.js → 232BH3SJ.js} +2 -2
- package/dist/cdn/{MNN3QF54.js → 2MN6S2HH.js} +2 -2
- package/dist/cdn/4BJYJUMR.js +2 -0
- package/dist/cdn/{DDJDHAHT.js → 5I5ODGDD.js} +2 -2
- package/dist/cdn/{WG5GA6QX.js → AGGCAE6P.js} +2 -2
- package/dist/cdn/BDF4ZLUF.js +2 -0
- package/dist/cdn/{MP6Z45SA.js → ECNI2A4K.js} +1 -1
- package/dist/cdn/{HYLC5GEB.js → F45Q3BRT.js} +1 -1
- package/dist/cdn/{JJZBCHU4.js → FZSF24HT.js} +2 -2
- package/dist/cdn/{GFUGR2W7.js → GEWXC2ZR.js} +2 -2
- package/dist/cdn/{TTV4Z2RR.js → HWEOBUAY.js} +2 -2
- package/dist/cdn/{YZGTCNEQ.js → MINFRX4Y.js} +2 -2
- package/dist/cdn/{EPX7DYFW.js → NKMDS2IH.js} +1 -1
- package/dist/cdn/{GSNPEBGQ.js → OOBX2C2L.js} +3 -3
- package/dist/cdn/ORSF6IOL.js +2 -0
- package/dist/cdn/QEW7H22O.js +2 -0
- package/dist/cdn/{H74W6KYI.js → S7B2PKI3.js} +2 -2
- package/dist/cdn/{WDOKXOEG.js → UGWLCTVM.js} +1 -1
- package/dist/cdn/{QEPJM6XG.js → UMIMGOKS.js} +2 -2
- package/dist/cdn/VUQJROFR.js +2 -0
- package/dist/cdn/{O3CBCQNL.js → WJ3TYWP2.js} +2 -2
- package/dist/cdn/X4NARYUV.js +2 -0
- package/dist/cdn/{TJNYRK5P.js → Y5Y7IXOV.js} +1 -1
- package/dist/cdn/{GPVWNUMW.js → YG4PY2H3.js} +2 -2
- package/dist/cdn/{JRF33N6C.js → YSXFXVP6.js} +2 -2
- package/dist/cdn/{P4CF7V4U.js → YVCGEEMG.js} +2 -2
- package/dist/cdn/{OQF4LYVE.js → YVWFGK4M.js} +2 -2
- 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/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/commonFunctions.js +1 -1
- package/dist/chunks/internal-types.js +1 -1
- package/dist/chunks/layer-utils.js +70 -0
- package/dist/chunks/locale.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.js +1 -1
- package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/customElement.d.ts +6 -4
- package/dist/components/{arcgis-spatial-reference-picker → arcgis-coordinate-system-picker}/customElement.js +7 -6
- 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 +9 -9
- package/dist/components/arcgis-field-info/customElement.js +170 -169
- package/dist/components/arcgis-field-info/utils/basic.d.ts +20 -16
- package/dist/components/arcgis-field-pick-list/customElement.js +92 -87
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +16 -16
- package/dist/components/arcgis-histogram/customElement.js +1 -1
- package/dist/components/arcgis-label-input/customElement.js +1 -1
- package/dist/components/arcgis-picker-input/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color/customElement.js +1 -1
- package/dist/components/arcgis-ramp-color-break/customElement.js +1 -1
- package/dist/components/arcgis-ramp-opacity/customElement.js +1 -1
- package/dist/components/arcgis-slider/customElement.js +3 -3
- package/dist/components/arcgis-slider-input/customElement.js +1 -1
- package/dist/components/arcgis-ticks/customElement.js +22 -22
- package/dist/components/arcgis-unique-values-list/customElement.js +74 -73
- 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/index.js +1 -1
- 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 +7 -7
- package/dist/cdn/43KGVFBF.js +0 -2
- package/dist/cdn/B43M633Q.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/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,26 @@
|
|
|
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 CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
|
|
20
20
|
|
|
21
|
-
/**
|
|
21
|
+
/**
|
|
22
|
+
* All supported layer types
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
22
26
|
export type FieldInfoLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
2
|
-
import { c as
|
|
3
|
-
import { keyed as
|
|
4
|
-
import { LitElement as w, createEvent as
|
|
5
|
-
import { createRef as
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
+
import { c as F } from "../../chunks/runtime.js";
|
|
3
|
+
import { keyed as y } from "lit/directives/keyed.js";
|
|
4
|
+
import { LitElement as w, createEvent as r, renderElement as $, 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 k } from "@lit/task";
|
|
8
|
+
import { log as f, composeMissingPropertyMessage as S } from "@arcgis/toolkit/log";
|
|
9
|
+
import { F as g } from "../../chunks/internal-types.js";
|
|
10
|
+
import { i as x } from "../../chunks/commonFunctions.js";
|
|
11
|
+
import { u as b } 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 B = ({ fieldType: m }) => l`<calcite-icon scale=s .icon=${n.get(m)}></calcite-icon>`, E = 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 L extends w {
|
|
31
31
|
constructor() {
|
|
32
|
-
super(...arguments), this._messages =
|
|
32
|
+
super(...arguments), this._messages = b({ 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 k(this, {
|
|
33
33
|
task: async ([e]) => {
|
|
34
|
-
if (!this.listOnly && !
|
|
35
|
-
throw
|
|
34
|
+
if (!this.listOnly && !x(e?.refElement))
|
|
35
|
+
throw f("error", this, S("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 = E;
|
|
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();
|
|
@@ -88,11 +88,11 @@ class E extends w {
|
|
|
88
88
|
}
|
|
89
89
|
getSortedList(e) {
|
|
90
90
|
let t = [...e];
|
|
91
|
-
const
|
|
92
|
-
return t = t.filter((
|
|
91
|
+
const i = t.filter((s) => s.type === "none");
|
|
92
|
+
return t = t.filter((s) => s.type !== "none"), this.lastSortBy === "display" ? t.sort((s, o) => s.alias.localeCompare(o.alias)) : this.lastSortBy === "field" ? t.sort((s, o) => s.name.localeCompare(o.name)) : this.lastSortBy === "type" && t.sort((s, o) => s.type.localeCompare(o.type)), t = t.concat(i), 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,12 +132,12 @@ class E extends w {
|
|
|
132
132
|
];
|
|
133
133
|
}
|
|
134
134
|
addFieldInfoFlowItem(e, t) {
|
|
135
|
-
const
|
|
136
|
-
|
|
135
|
+
const i = this.flowElement.value, s = $(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
|
-
}} ${
|
|
140
|
-
|
|
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
|
+
i.appendChild(s), this.panelElement.value.selected = !1, this.fieldInfoFlowItemEl?.value.setFocus();
|
|
141
141
|
}
|
|
142
142
|
usingCustomGroups() {
|
|
143
143
|
return !!this.fields.length && "fields" in this.fields[0];
|
|
@@ -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), i = e.filter((o) => t.has(o)), s = (
|
|
155
|
+
// adding/removing fields
|
|
156
|
+
i.length !== this.selectedFields.length || // reordering fields
|
|
157
|
+
i.some((o, p) => o !== this.selectedFields[p])
|
|
158
|
+
);
|
|
159
|
+
return s && (this.selectedFields = [...i]), s;
|
|
160
|
+
}
|
|
148
161
|
render() {
|
|
149
162
|
return this._propWatcherTask.render({
|
|
150
163
|
complete: () => {
|
|
@@ -153,48 +166,40 @@ 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
|
-
const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.getAllFields(),
|
|
168
|
-
return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${
|
|
169
|
-
const
|
|
170
|
-
this.selectedFields = [.../* @__PURE__ */ new Set([...
|
|
171
|
-
}} @calciteListFilter=${(
|
|
172
|
-
|
|
173
|
-
}} ${
|
|
180
|
+
const e = this.heading || (this.multiple ? this._messages.headerSelect : this._messages.header), t = this.getAllFields(), i = t.length >= this.showFilterLength;
|
|
181
|
+
return l`${t.length ? l`<calcite-list .label=${e} .selectionMode=${this.multiple ? "multiple" : "single"} class=${v(this.listOnly ? "" : "content")} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText ?? this._messages.filter} @calciteListChange=${() => {
|
|
182
|
+
const s = this.listNode.value.selectedItems.map((d) => d.value), o = this.selectedFields.filter((d) => s.includes(d)), p = s.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 }));
|
|
184
|
+
}} @calciteListFilter=${(s) => {
|
|
185
|
+
s.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 && (!i || !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();
|
|
177
190
|
if (!(e.length >= this.showFilterLength && !this.hideSort))
|
|
178
191
|
return "";
|
|
179
|
-
const
|
|
192
|
+
const i = e.every((s) => !!s.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
|
-
|
|
184
|
-
}} @keydown=${(
|
|
185
|
-
|
|
186
|
-
}}>${this._messages.
|
|
187
|
-
|
|
188
|
-
}} @keydown=${(
|
|
189
|
-
|
|
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));
|
|
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"} @click=${() => this.setSortBy("default")} @keydown=${(s) => {
|
|
196
|
+
s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("default");
|
|
197
|
+
}}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy === "display"} @click=${() => this.setSortBy("display")} @keydown=${(s) => {
|
|
198
|
+
s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("display");
|
|
199
|
+
}}>${this._messages.displayName}</calcite-dropdown-item>${i && l`<calcite-dropdown-item .selected=${this.lastSortBy === "type"} @click=${() => this.setSortBy("type")} @keydown=${(s) => {
|
|
200
|
+
s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("type");
|
|
201
|
+
}}>${this._messages.type}</calcite-dropdown-item>` || ""}<calcite-dropdown-item .selected=${this.lastSortBy === "field"} @click=${() => this.setSortBy("field")} @keydown=${(s) => {
|
|
202
|
+
s.stopPropagation(), (s.key === " " || s.key === "Enter") && this.setSortBy("field");
|
|
198
203
|
}}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`;
|
|
199
204
|
}
|
|
200
205
|
renderSelectionButton() {
|
|
@@ -205,18 +210,18 @@ class E extends w {
|
|
|
205
210
|
this.selectedFields = [.../* @__PURE__ */ new Set([...this.selectedFields, ...this.filterFields])];
|
|
206
211
|
else {
|
|
207
212
|
const t = this.getAllFields();
|
|
208
|
-
this.selectedFields = t.map((
|
|
213
|
+
this.selectedFields = t.map((i) => i.name);
|
|
209
214
|
}
|
|
210
|
-
this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
|
|
215
|
+
this.reorderSelectedFieldsByCurrentListOrder(), this.arcgisChange.emit({ selectedFields: this.selectedFields }), this.arcgisFieldPickListChange.emit({ selectedFields: this.selectedFields });
|
|
211
216
|
}}>${this.canDeselectAll() ? this._messages.deselectAll : this._messages.selectAll}</calcite-button></div>`;
|
|
212
217
|
}
|
|
213
218
|
renderListItems() {
|
|
214
219
|
const e = this.allLists.filter((t) => !!t.fields.length);
|
|
215
|
-
return e.length === 1 && !e[0].title ? e[0].fields.map((t) => this.renderCalciteListItem(t)) : e.map((
|
|
220
|
+
return e.length === 1 && !e[0].title ? e[0].fields.map((t) => this.renderCalciteListItem(t)) : e.map((i) => l`<calcite-list-item-group .heading=${i.title}>${i.fields.map((s) => this.renderCalciteListItem(s))}</calcite-list-item-group>`);
|
|
216
221
|
}
|
|
217
222
|
renderCalciteListItem(e) {
|
|
218
|
-
const t = this.showFieldInfoCheck(e),
|
|
219
|
-
return
|
|
223
|
+
const t = this.showFieldInfoCheck(e), i = this.showFieldTypeIcon && !!e.type;
|
|
224
|
+
return y(e.name, l`<calcite-list-item .label=${e.alias || e.name} .description=${(() => {
|
|
220
225
|
if (this.showFieldName && e.hideFieldName !== !0)
|
|
221
226
|
return `{${e.name}}`;
|
|
222
227
|
if (this.showDescription && e.hideDescription !== !0 && e.description)
|
|
@@ -224,26 +229,26 @@ class E extends w {
|
|
|
224
229
|
})()} .value=${e.name} .selected=${!this.multiple && e.name === this.selectedFields[0] || this.multiple && this.selectedFields.includes(e.name)} .metadata=${{
|
|
225
230
|
label: e.alias,
|
|
226
231
|
fieldName: e.name
|
|
227
|
-
}}>${
|
|
232
|
+
}}>${i && l`<div slot=actions-end class="field-icons">${B({ fieldType: e.type })}</div>` || ""}${this.renderInfoAction(e, t)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`);
|
|
228
233
|
}
|
|
229
234
|
renderInfoAction(e, t) {
|
|
230
|
-
const { _messages:
|
|
231
|
-
return t ? l`<calcite-action slot=actions-end .text=${
|
|
232
|
-
|
|
233
|
-
const
|
|
234
|
-
this.addFieldInfoFlowItem(e,
|
|
235
|
+
const { _messages: i } = this;
|
|
236
|
+
return t ? l`<calcite-action slot=actions-end .text=${i.info} title=${i.info ?? h} scale=s icon=information @click=${(s) => {
|
|
237
|
+
s.stopPropagation();
|
|
238
|
+
const o = s.currentTarget;
|
|
239
|
+
this.addFieldInfoFlowItem(e, o);
|
|
235
240
|
}}></calcite-action>` : "";
|
|
236
241
|
}
|
|
237
242
|
renderEditAction(e) {
|
|
238
243
|
const { _messages: t } = this;
|
|
239
|
-
return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ??
|
|
240
|
-
|
|
244
|
+
return e.showEditAction ? l`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit ?? h} scale=s icon=pencil @click=${(i) => {
|
|
245
|
+
i.stopPropagation(), this.arcgisEditField.emit({ fieldName: e.name });
|
|
241
246
|
}}></calcite-action>` : "";
|
|
242
247
|
}
|
|
243
248
|
renderDeleteAction(e) {
|
|
244
249
|
const { _messages: t } = this;
|
|
245
|
-
return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ??
|
|
246
|
-
|
|
250
|
+
return e.showDeleteAction ? l`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete ?? h} scale=s icon=trash @click=${(i) => {
|
|
251
|
+
i.stopPropagation(), this.arcgisDeleteField.emit({ fieldName: e.name });
|
|
247
252
|
}}></calcite-action>` : "";
|
|
248
253
|
}
|
|
249
254
|
renderAddButton() {
|
|
@@ -257,7 +262,7 @@ class E extends w {
|
|
|
257
262
|
}}>${this._messages.cancel}</calcite-button>`;
|
|
258
263
|
}
|
|
259
264
|
}
|
|
260
|
-
|
|
265
|
+
F("arcgis-field-pick-list", L);
|
|
261
266
|
export {
|
|
262
|
-
|
|
267
|
+
L as ArcgisFieldPickList
|
|
263
268
|
};
|
|
@@ -1,22 +1,22 @@
|
|
|
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
20
|
|
|
21
21
|
/**
|
|
22
22
|
* All supported layer types
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as M } from "../../chunks/runtime.js";
|
|
3
3
|
import { u as k } from "../../chunks/useT9n.js";
|
|
4
4
|
import { substitute as E } from "@arcgis/core/intl.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as o } from "../../chunks/runtime.js";
|
|
3
3
|
import { formatNumber as u } from "@arcgis/core/intl.js";
|
|
4
4
|
import { LitElement as c, createEvent as h, safeClassMap as d } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as n } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as o } from "lit";
|
|
4
4
|
import { LitElement as a, createEvent as i, safeStyleMap as r } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as f } from "../../chunks/runtime.js";
|
|
3
3
|
import w from "@arcgis/core/Color.js";
|
|
4
4
|
import { LitElement as x, nothing as u, safeClassMap as C } from "@arcgis/lumina";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as l } from "../../chunks/runtime.js";
|
|
3
3
|
import { LitElement as m } from "@arcgis/lumina";
|
|
4
4
|
import { css as p, html as c } from "lit";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as Q } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as Z } from "lit/directives/keyed.js";
|
|
4
4
|
import { LitElement as ee, createEvent as $, safeClassMap as P, safeStyleMap as L, nothing as E } from "@arcgis/lumina";
|
|
@@ -135,7 +135,7 @@ let w = class extends oe {
|
|
|
135
135
|
return;
|
|
136
136
|
}
|
|
137
137
|
const e = this._get("values");
|
|
138
|
-
if (n = n?.map((a) => T(x(a, this.precision), this.min, this.max)).sort((a, i) => a - i), e
|
|
138
|
+
if (n = n?.map((a) => T(x(a, this.precision), this.min, this.max)).sort((a, i) => a - i), e?.length === n?.length && e.every((a, i) => a === n[i]))
|
|
139
139
|
return;
|
|
140
140
|
const t = new Map(n?.map((a) => [K(), a]));
|
|
141
141
|
this._entries = t, this._set("values", n);
|
|
@@ -873,7 +873,7 @@ class Pe extends ee {
|
|
|
873
873
|
}
|
|
874
874
|
_renderThumb(e, t) {
|
|
875
875
|
const { valueLabelsDisplay: a } = this, i = this._disabledOrInvalid, r = this._activePart === e || this._activePart === "range", o = this._activePart === "range" || this._activePart === e, s = a === "always" || a === "auto" && o, l = this.isHorizontal, c = l ? "horizontal" : "vertical", d = `label-${e}`, h = l ? "center" : this.valueLabelsPlacement === "start" ? "end" : "start";
|
|
876
|
-
return Z(e, y`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this.
|
|
876
|
+
return Z(e, y`<div id=${e ?? E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a ? d : void 0) ?? E} .ariaOrientation=${c} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${P({
|
|
877
877
|
thumb: !0,
|
|
878
878
|
active: r
|
|
879
879
|
})} data-entry=${e ?? E} @pointerdown=${this._onThumbPointerDown} @focus=${this._onThumbFocus} @blur=${this._onThumbBlur} @keydown=${this._onThumbKeyDown} role=slider style=${L({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as d } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as m, html as o } from "lit";
|
|
4
4
|
import { LitElement as b, createEvent as p } from "@arcgis/lumina";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
2
|
import { c as $ } from "../../chunks/runtime.js";
|
|
3
|
-
import { css as M, html as
|
|
4
|
-
import { LitElement as _, createEvent as C, safeClassMap as h, nothing as v, safeStyleMap as
|
|
3
|
+
import { css as M, html as o } from "lit";
|
|
4
|
+
import { LitElement as _, createEvent as C, safeClassMap as h, nothing as v, safeStyleMap as f } from "@arcgis/lumina";
|
|
5
5
|
import { formatNumber as z } from "@arcgis/core/intl.js";
|
|
6
6
|
const n = {
|
|
7
7
|
container: "container",
|
|
@@ -12,7 +12,7 @@ const n = {
|
|
|
12
12
|
tickMax: "tick--max",
|
|
13
13
|
tickLabel: "tick-label",
|
|
14
14
|
baseline: "baseline"
|
|
15
|
-
}, A = M`:host{display:flex;--arcgis-ticks-
|
|
15
|
+
}, A = M`:host{display:flex;--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label:hover{text-decoration:underline}}`;
|
|
16
16
|
class F extends _ {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments), this._formatValue = (e) => z(e, this._formatOptions), this._formatOptions = {
|
|
@@ -62,23 +62,23 @@ class F extends _ {
|
|
|
62
62
|
return i ?? this._formatValue(e);
|
|
63
63
|
}
|
|
64
64
|
render() {
|
|
65
|
-
return
|
|
65
|
+
return o`<div class=${h(n.container)} touch-action=none @click=${this._handleClick}>${this._renderContent()}${this._renderBaseline()}</div>`;
|
|
66
66
|
}
|
|
67
67
|
_renderContent() {
|
|
68
|
-
const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout:
|
|
69
|
-
for (const [
|
|
70
|
-
const p = { [
|
|
68
|
+
const { interpolationExponent: e, max: t, min: i, mode: r, values: a, layout: c, mirrored: l, showLabels: w } = this, u = [], b = [];
|
|
69
|
+
for (const [k, d] of L(r, i, t, e, a)) {
|
|
70
|
+
const p = { [c === "horizontal" ? l ? "right" : "left" : l ? "top" : "bottom"]: `${k}%` }, x = {
|
|
71
71
|
[n.tick]: !0,
|
|
72
|
-
[n.tickMin]:
|
|
73
|
-
[n.tickMax]:
|
|
72
|
+
[n.tickMin]: k === 0,
|
|
73
|
+
[n.tickMax]: k === 100
|
|
74
74
|
};
|
|
75
|
-
|
|
75
|
+
u.push(o`<div class=${h(x)} style=${f(p)} data-value=${d ?? v}></div>`), w && b.push(o`<div class=${h(n.tickLabel)} style=${f(p)} data-value=${d ?? v}>${this._internalLabelFormatter(d)}</div>`);
|
|
76
76
|
}
|
|
77
|
-
return [
|
|
77
|
+
return [o`<div class=${h(n.labelsContainer)}>${b}</div>`, o`<div class=${h(n.ticksContainer)}>${u}</div>`];
|
|
78
78
|
}
|
|
79
79
|
_renderBaseline() {
|
|
80
80
|
const { showBaseline: e, layout: t } = this;
|
|
81
|
-
return e &&
|
|
81
|
+
return e && o`<div class=${h(n.baseline)} style=${f({
|
|
82
82
|
[t === "horizontal" ? "width" : "height"]: "100%",
|
|
83
83
|
[t === "horizontal" ? "height" : "width"]: "0.125rem"
|
|
84
84
|
})}></div>` || "";
|
|
@@ -88,9 +88,9 @@ function* L(s, e, t, i, r) {
|
|
|
88
88
|
switch (s) {
|
|
89
89
|
case "value": {
|
|
90
90
|
const a = Array.isArray(r) ? r : [r];
|
|
91
|
-
for (const
|
|
92
|
-
const l = P(e, t,
|
|
93
|
-
l >= 0 && l <= 100 && (yield [l,
|
|
91
|
+
for (const c of a) {
|
|
92
|
+
const l = P(e, t, c, i) * 100;
|
|
93
|
+
l >= 0 && l <= 100 && (yield [l, c]);
|
|
94
94
|
}
|
|
95
95
|
break;
|
|
96
96
|
}
|
|
@@ -108,15 +108,15 @@ function* L(s, e, t, i, r) {
|
|
|
108
108
|
if (a <= 1)
|
|
109
109
|
yield [50, m(e, t, 0.5, i)];
|
|
110
110
|
else
|
|
111
|
-
for (let
|
|
112
|
-
const l =
|
|
111
|
+
for (let c = 0; c < a; c++) {
|
|
112
|
+
const l = c * 100 / (a - 1);
|
|
113
113
|
yield [l, m(e, t, l / 100, i)];
|
|
114
114
|
}
|
|
115
115
|
break;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
function
|
|
119
|
+
function g(s, e, t) {
|
|
120
120
|
return t < s ? s : t > e ? e : t;
|
|
121
121
|
}
|
|
122
122
|
function y(s, e, t) {
|
|
@@ -124,13 +124,13 @@ function y(s, e, t) {
|
|
|
124
124
|
}
|
|
125
125
|
function P(s, e, t, i = 0) {
|
|
126
126
|
let r = (t - s) / (e - s);
|
|
127
|
-
if (r =
|
|
127
|
+
if (r = g(0, 1, r), Math.abs(i) < 1e-9)
|
|
128
128
|
return r;
|
|
129
129
|
const a = 1 + Math.expm1(i) * r;
|
|
130
|
-
return r = Math.log(a) / i,
|
|
130
|
+
return r = Math.log(a) / i, g(0, 1, r);
|
|
131
131
|
}
|
|
132
132
|
function m(s, e, t, i = 0) {
|
|
133
|
-
if (t =
|
|
133
|
+
if (t = g(0, 1, t), Math.abs(i) < 1e-9)
|
|
134
134
|
return y(s, e, t);
|
|
135
135
|
const r = Math.expm1(i * t) / Math.expm1(i);
|
|
136
136
|
return y(s, e, r);
|