@arcgis/common-components 5.1.0-next.12 → 5.1.0-next.121
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 +26 -3
- package/dist/cdn/{J5X5TNVW.js → 3CYVP75E.js} +1 -1
- package/dist/cdn/{7PB2GGQH.js → 3L7MTTM2.js} +1 -1
- package/dist/cdn/5HNFQDIE.js +2 -0
- package/dist/cdn/6RFADDWS.js +4 -0
- package/dist/cdn/AETG56T6.js +2 -0
- package/dist/cdn/AH2USIZR.js +2 -0
- package/dist/cdn/BCWKJTLV.js +2 -0
- package/dist/cdn/BYGHEIBE.js +2 -0
- package/dist/cdn/{7HQMPKZO.js → CBAQR6M4.js} +1 -1
- package/dist/cdn/DCI6LRH3.js +2 -0
- package/dist/cdn/DJBJXOSO.js +2 -0
- package/dist/cdn/DUJ3WX7U.js +2 -0
- package/dist/cdn/{AXTSUI2Q.js → DYF5K55H.js} +3 -3
- package/dist/cdn/{YVSTPEPS.js → EHX3VIM6.js} +1 -1
- package/dist/cdn/{7Y42J3JI.js → G76LQ75D.js} +1 -1
- package/dist/cdn/{ZOWIFVL3.js → HXWUO3AD.js} +1 -1
- package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/KGHLN7QM.js +2 -0
- package/dist/cdn/PECYQ2HF.js +2 -0
- package/dist/cdn/TKMLU77O.js +2 -0
- package/dist/cdn/WPKV6SVG.js +2 -0
- package/dist/cdn/YCAZ4ZY2.js +2 -0
- package/dist/cdn/ZBV64YMG.js +2 -0
- 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/coordinate-system-picker/t9n/messages.en-US.json +1 -0
- package/dist/cdn/assets/coordinate-system-picker/t9n/messages.en.json +1 -0
- 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/assets/field-pick-list/t9n/messages.no.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/commonFunctions.js +7 -3
- package/dist/chunks/layer-utils.js +70 -0
- package/dist/components/arcgis-ckeditor5/customElement.js +12 -12
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +3 -2
- package/dist/components/arcgis-color-input/customElement.js +6 -3
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +331 -0
- package/dist/components/arcgis-coordinate-system-picker/customElement.js +7703 -0
- package/dist/components/arcgis-coordinate-system-picker/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker/index.js +3 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.d.ts +35 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/customElement.js +77 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.d.ts +1 -0
- package/dist/components/arcgis-coordinate-system-picker-tree/index.js +3 -0
- package/dist/components/arcgis-field-info/customElement.d.ts +4 -2
- package/dist/components/arcgis-field-info/customElement.js +173 -172
- package/dist/components/arcgis-field-info/utils/basic.d.ts +25 -3
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +13 -10
- package/dist/components/arcgis-field-pick-list/customElement.js +91 -86
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +20 -2
- package/dist/components/arcgis-histogram/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram/customElement.js +81 -90
- package/dist/components/arcgis-histogram/types.d.ts +1 -3
- package/dist/components/arcgis-label-input/customElement.d.ts +5 -6
- package/dist/components/arcgis-label-input/customElement.js +22 -17
- package/dist/components/arcgis-picker-input/customElement.d.ts +2 -2
- package/dist/components/arcgis-picker-input/customElement.js +11 -11
- package/dist/components/arcgis-slider/customElement.d.ts +72 -67
- package/dist/components/arcgis-slider/customElement.js +349 -304
- package/dist/components/arcgis-slider-input/customElement.d.ts +6 -0
- package/dist/components/arcgis-slider-input/customElement.js +12 -12
- package/dist/components/arcgis-ticks/customElement.d.ts +18 -16
- package/dist/components/arcgis-ticks/customElement.js +21 -21
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
- package/dist/components/arcgis-unique-values-list/customElement.js +162 -154
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +21 -3
- 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 +39 -1
- package/dist/loader.js +7 -5
- package/dist/types/lumina.d.ts +14 -2
- package/dist/types/preact.d.ts +16 -2
- package/dist/types/react.d.ts +18 -2
- package/dist/types/stencil.d.ts +14 -2
- package/dist/utils/internal-types.d.ts +1 -0
- package/dist/utils/spatial-references.d.ts +1 -0
- package/dist/utils/types.d.ts +21 -18
- package/package.json +11 -9
- package/dist/cdn/23DDMSOB.js +0 -2
- package/dist/cdn/2BDHDUXG.js +0 -2
- package/dist/cdn/3O7GAC23.js +0 -2
- package/dist/cdn/4CW7U27R.js +0 -2
- package/dist/cdn/4DCAUWTC.js +0 -2
- package/dist/cdn/57I35HLF.js +0 -2
- package/dist/cdn/6DQVLQL6.js +0 -2
- package/dist/cdn/C6JAR4IN.js +0 -2
- package/dist/cdn/EKKJN7WZ.js +0 -2
- package/dist/cdn/UTXWKXMT.js +0 -4
- package/dist/cdn/XEB2RUND.js +0 -2
- package/dist/cdn/ZL3E4ZGE.js +0 -2
- package/dist/cdn/ZLXAKPUH.js +0 -2
- /package/dist/cdn/{CSDKXC4T.js → TJNYRK5P.js} +0 -0
- /package/dist/chunks/{types.js → internal-types.js} +0 -0
|
@@ -1,4 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import type SceneLayer from "@arcgis/core/layers/SceneLayer.js";
|
|
2
|
+
import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
|
|
3
|
+
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
4
|
+
import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.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 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";
|
|
19
|
+
import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
2
20
|
|
|
3
|
-
/**
|
|
4
|
-
|
|
21
|
+
/**
|
|
22
|
+
* All supported layer types
|
|
23
|
+
*
|
|
24
|
+
* @internal
|
|
25
|
+
*/
|
|
26
|
+
export type FieldInfoLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
|
|
2
|
+
import type View from "@arcgis/core/views/View.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
|
-
import type {
|
|
4
|
+
import type { PickListFieldInfo, PickListGroupInfo, PopoverProps } from "../../utils/types.js";
|
|
5
5
|
import type { FieldPickListLayer } from "./utils/types.js";
|
|
6
6
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
7
7
|
|
|
@@ -57,14 +57,14 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
57
57
|
noMatches: string;
|
|
58
58
|
}>;
|
|
59
59
|
/** Custom function to distinguish expressions from fields. */
|
|
60
|
-
accessor customExpressionCheck: ((field:
|
|
60
|
+
accessor customExpressionCheck: ((field: PickListFieldInfo) => boolean) | undefined;
|
|
61
61
|
/** Header text for group containing expressions, if 'groupFieldsAndExpressions' is set to true. */
|
|
62
62
|
accessor expressionsGroupHeading: string | undefined;
|
|
63
63
|
/**
|
|
64
64
|
* All display fields with name, alias, type, and description, sorted by default order.
|
|
65
65
|
* A field with type "none" will always show at the bottom of the list without an info action.
|
|
66
66
|
*/
|
|
67
|
-
accessor fields:
|
|
67
|
+
accessor fields: PickListFieldInfo[] | PickListGroupInfo[];
|
|
68
68
|
/** Header text for group containing fields, if 'groupFieldsAndExpressions' is set to true. */
|
|
69
69
|
accessor fieldsGroupHeading: string | undefined;
|
|
70
70
|
/** Filter no results text. If empty string ("") no text will be shown. */
|
|
@@ -101,7 +101,7 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
101
101
|
*/
|
|
102
102
|
accessor listOnly: boolean;
|
|
103
103
|
/** @deprecated use view instead */
|
|
104
|
-
accessor mapView:
|
|
104
|
+
accessor mapView: View | undefined;
|
|
105
105
|
/**
|
|
106
106
|
* If true, allows for multiple selection. If false, the
|
|
107
107
|
* popover will close once an item has been selected.
|
|
@@ -112,7 +112,7 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
112
112
|
/** Ok button text. Ok button only shows when multiple set to true. Valid only if listOnly is not set to true. */
|
|
113
113
|
accessor okBtnText: string | undefined;
|
|
114
114
|
/** Convenience prop to specify common popover props, `popoverProps.refElement` is required. Valid only if listOnly is not set to true. */
|
|
115
|
-
accessor popoverProps:
|
|
115
|
+
accessor popoverProps: PopoverProps | undefined;
|
|
116
116
|
/** The initially selected fields. Will use selectedFields[0] when multiple is set to false. */
|
|
117
117
|
accessor selectedFields: string[];
|
|
118
118
|
/**
|
|
@@ -168,7 +168,7 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
168
168
|
*/
|
|
169
169
|
accessor sortBy: LastSortBy;
|
|
170
170
|
/** View instance. */
|
|
171
|
-
accessor view:
|
|
171
|
+
accessor view: View | undefined;
|
|
172
172
|
/** Reposition the component. */
|
|
173
173
|
reposition(): Promise<void>;
|
|
174
174
|
/**
|
|
@@ -183,9 +183,9 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
183
183
|
readonly arcgisChange: import("@arcgis/lumina").TargetedEvent<this, { selectedFields: string[]; }>;
|
|
184
184
|
/** Emitted when the pick list has been closed. */
|
|
185
185
|
readonly arcgisClose: import("@arcgis/lumina").TargetedEvent<this, { selectedFields: string[]; } | void>;
|
|
186
|
-
/** Emitted when the delete icon of a field has been clicked. The field must have
|
|
186
|
+
/** Emitted when the delete icon of a field has been clicked. The field must have PickListFieldInfo.showDeleteAction set to true. */
|
|
187
187
|
readonly arcgisDeleteField: import("@arcgis/lumina").TargetedEvent<this, { fieldName: string; }>;
|
|
188
|
-
/** Emitted when the edit icon of a field has been clicked. The field must have
|
|
188
|
+
/** Emitted when the edit icon of a field has been clicked. The field must have PickListFieldInfo.showEditAction set to true. */
|
|
189
189
|
readonly arcgisEditField: import("@arcgis/lumina").TargetedEvent<this, { fieldName: string; }>;
|
|
190
190
|
/** @deprecated use arcgisChange instead */
|
|
191
191
|
readonly arcgisFieldPickListChange: import("@arcgis/lumina").TargetedEvent<this, { selectedFields: string[]; }>;
|
|
@@ -205,4 +205,7 @@ export abstract class ArcgisFieldPickList extends LitElement {
|
|
|
205
205
|
arcgisFieldPickListSortByChange: ArcgisFieldPickList["arcgisFieldPickListSortByChange"]["detail"];
|
|
206
206
|
arcgisSortByChange: ArcgisFieldPickList["arcgisSortByChange"]["detail"];
|
|
207
207
|
};
|
|
208
|
-
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
/** @internal */
|
|
211
|
+
export type LastSortBy = "default" | "display" | "field" | "type";
|
|
@@ -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 w, createEvent as
|
|
5
|
-
import { createRef as
|
|
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 {
|
|
10
|
-
import {
|
|
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,8 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
2
|
+
import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
|
|
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";
|
|
2
20
|
|
|
3
21
|
/**
|
|
4
22
|
* All supported layer types
|
|
5
23
|
*
|
|
6
24
|
* @internal
|
|
7
25
|
*/
|
|
8
|
-
export type FieldPickListLayer =
|
|
26
|
+
export type FieldPickListLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
@@ -5,7 +5,7 @@ import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Renders a histogram to visualize the spread of a dataset based on [bins](
|
|
8
|
+
* Renders a histogram to visualize the spread of a dataset based on [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#bins) representing buckets, or sub-ranges, of
|
|
9
9
|
* data. Each [bin](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/types/#HistogramBin) is defined by a minimum and maximum value and a total count.
|
|
10
10
|
*
|
|
11
11
|
* You can generate the underlying histogram's bins with the [histogram](https://developers.arcgis.com/javascript/latest/references/core/smartMapping/statistics/histogram/)
|
|
@@ -27,19 +27,19 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
27
27
|
* histogramElement.max = results.maxValue;
|
|
28
28
|
* ```
|
|
29
29
|
*
|
|
30
|
-
* Other properties of this component allow you to display meaningful values on the histogram, such as the [average](
|
|
31
|
-
* [
|
|
30
|
+
* Other properties of this component allow you to display meaningful values on the histogram, such as the [average](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#average),
|
|
31
|
+
* [standardDeviation](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#standardDeviation), and the [dataLines](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#dataLines) properties.
|
|
32
32
|
*
|
|
33
|
-
* The [layout](
|
|
33
|
+
* The [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#layout) property allows you to set the orientation of the histogram, and the [colorStops](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#colorStops)
|
|
34
34
|
* property allows you to set a gradient or color scheme for the histogram bars.
|
|
35
35
|
*
|
|
36
36
|
* See the image below for a summary of the configurable options available on the histogram.
|
|
37
37
|
*
|
|
38
|
-
* 
|
|
39
39
|
*
|
|
40
|
-
* The [colorStops](
|
|
40
|
+
* The [colorStops](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#colorStops) property may be used to define a color scheme for the histogram bars.
|
|
41
41
|
*
|
|
42
|
-
* 
|
|
43
43
|
*
|
|
44
44
|
* @cssproperty [--arcgis-histogram-bar-color] - Specifies the color of the histogram bars when the bin doesn't have a corresponding color stop.
|
|
45
45
|
* @cssproperty [--arcgis-histogram-stop-color] - Specifies the default color for color stops.
|
|
@@ -107,7 +107,7 @@ export abstract class ArcgisHistogram extends LitElement {
|
|
|
107
107
|
* When set to `true`, overlapping classed color stops will be blended together to create the color of the bar.
|
|
108
108
|
* This allows to show a if a bar representing a bin overlaps with multiple classed color stops.
|
|
109
109
|
*
|
|
110
|
-
* This property is only applicable when the [colorStops](
|
|
110
|
+
* This property is only applicable when the [colorStops](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#colorStops) property is set to classed color stops.
|
|
111
111
|
*
|
|
112
112
|
* @default false
|
|
113
113
|
*/
|
|
@@ -200,7 +200,7 @@ export abstract class ArcgisHistogram extends LitElement {
|
|
|
200
200
|
accessor layout: HistogramLayout;
|
|
201
201
|
/**
|
|
202
202
|
* The maximum value or bound of the entire histogram. This
|
|
203
|
-
* should match the maximum bound of the last [
|
|
203
|
+
* should match the maximum bound of the last [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#bins).
|
|
204
204
|
*
|
|
205
205
|
* @example
|
|
206
206
|
* ```js
|
|
@@ -224,7 +224,7 @@ export abstract class ArcgisHistogram extends LitElement {
|
|
|
224
224
|
};
|
|
225
225
|
/**
|
|
226
226
|
* The minimum value or bound of the entire histogram. This
|
|
227
|
-
* should match the minimum bound of the first [
|
|
227
|
+
* should match the minimum bound of the first [bins](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-histogram/#bins).
|
|
228
228
|
*
|
|
229
229
|
* @example
|
|
230
230
|
* ```js
|