@arcgis/common-components 5.1.0-next.9 → 5.1.0-next.90
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 +24 -1
- package/dist/cdn/{7HQMPKZO.js → 3G2YIQ2H.js} +1 -1
- package/dist/cdn/3XQ2BXVZ.js +2 -0
- package/dist/cdn/BKYTDR46.js +2 -0
- package/dist/cdn/{7PB2GGQH.js → BZM2IT6I.js} +1 -1
- package/dist/cdn/{23DDMSOB.js → EUASID5E.js} +1 -1
- package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/IFVBIQTC.js +2 -0
- package/dist/cdn/{ZLXAKPUH.js → IRNUEFLU.js} +1 -1
- package/dist/cdn/K7ZYVDSB.js +2 -0
- package/dist/cdn/{4CW7U27R.js → M4VPJH2A.js} +1 -1
- package/dist/cdn/MB7UDGWW.js +2 -0
- package/dist/cdn/{AXTSUI2Q.js → MK3AKKYE.js} +1 -1
- package/dist/cdn/NJDJB5PA.js +2 -0
- package/dist/cdn/{4DCAUWTC.js → O6URHY4T.js} +1 -1
- package/dist/cdn/{ZOWIFVL3.js → OCSJN2DD.js} +1 -1
- package/dist/cdn/{7Y42J3JI.js → ODQFCCON.js} +1 -1
- package/dist/cdn/OTH3D6VO.js +2 -0
- package/dist/cdn/RKCOXVOG.js +2 -0
- package/dist/cdn/TFC6EZUO.js +2 -0
- package/dist/cdn/THRWQA3M.js +4 -0
- package/dist/cdn/{C6JAR4IN.js → YNZWIV4G.js} +1 -1
- package/dist/cdn/{YVSTPEPS.js → YXVSNI5R.js} +1 -1
- package/dist/cdn/{J5X5TNVW.js → Z2BJWRNF.js} +1 -1
- package/dist/cdn/assets/field-pick-list/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ar.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bg.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.bs.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ca.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.cs.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.da.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.de.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.el.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en-US.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.en.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.es.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.et.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fi.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.fr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.he.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.hu.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.id.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.it.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ja.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ko.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lt.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.lv.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.nl.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.no.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pl.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-BR.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.pt-PT.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ro.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.ru.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sk.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sl.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.sv.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.th.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.tr.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.uk.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.vi.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-CN.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-HK.json +1 -0
- package/dist/cdn/assets/spatial-reference-picker/t9n/messages.zh-TW.json +1 -0
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/commonFunctions.js +7 -3
- package/dist/components/arcgis-ckeditor5/customElement.js +7 -7
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-field-info/customElement.d.ts +2 -2
- package/dist/components/arcgis-field-info/utils/basic.d.ts +20 -2
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +3 -3
- package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
- 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.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-spatial-reference-picker/customElement.d.ts +327 -0
- package/dist/components/arcgis-spatial-reference-picker/customElement.js +7702 -0
- package/dist/components/arcgis-spatial-reference-picker/index.d.ts +1 -0
- package/dist/components/arcgis-spatial-reference-picker/index.js +3 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/customElement.d.ts +35 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/customElement.js +77 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/index.d.ts +1 -0
- package/dist/components/arcgis-spatial-reference-picker-tree/index.js +3 -0
- package/dist/components/arcgis-ticks/customElement.d.ts +20 -23
- package/dist/components/arcgis-ticks/customElement.js +7 -7
- package/dist/components/arcgis-ticks/types.d.ts +23 -0
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +9 -4
- package/dist/components/arcgis-unique-values-list/customElement.js +158 -151
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +13 -2
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/loader.js +4 -2
- 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/spatial-references.d.ts +1 -0
- package/dist/utils/types.d.ts +3 -0
- package/package.json +5 -6
- package/dist/cdn/2BDHDUXG.js +0 -2
- package/dist/cdn/3O7GAC23.js +0 -2
- package/dist/cdn/57I35HLF.js +0 -2
- package/dist/cdn/6DQVLQL6.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
|
@@ -9245,7 +9245,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
9245
9245
|
const Me = "41.3.1", gn = new Date(2024, 3, 16);
|
|
9246
9246
|
if (globalThis.CKEDITOR_VERSION) throw new C("ckeditor-duplicated-modules", null);
|
|
9247
9247
|
globalThis.CKEDITOR_VERSION = Me;
|
|
9248
|
-
const rt = Symbol("listeningTo"), Dn = Symbol("emitterId"), xt = Symbol("delegations"), nd = pe(Object);
|
|
9248
|
+
const rt = /* @__PURE__ */ Symbol("listeningTo"), Dn = /* @__PURE__ */ Symbol("emitterId"), xt = /* @__PURE__ */ Symbol("delegations"), nd = pe(Object);
|
|
9249
9249
|
function pe(i) {
|
|
9250
9250
|
return i ? class extends i {
|
|
9251
9251
|
on(e, t, n) {
|
|
@@ -9381,7 +9381,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
9381
9381
|
const Ce = function(i) {
|
|
9382
9382
|
var e = typeof i;
|
|
9383
9383
|
return i != null && (e == "object" || e == "function");
|
|
9384
|
-
}, lr = Symbol("observableProperties"), cr = Symbol("boundObservables"), dr = Symbol("boundProperties"), co = Symbol("decoratedMethods"), ad = Symbol("decoratedOriginal"), ld = fe(pe());
|
|
9384
|
+
}, lr = /* @__PURE__ */ Symbol("observableProperties"), cr = /* @__PURE__ */ Symbol("boundObservables"), dr = /* @__PURE__ */ Symbol("boundProperties"), co = /* @__PURE__ */ Symbol("decoratedMethods"), ad = /* @__PURE__ */ Symbol("decoratedOriginal"), ld = fe(pe());
|
|
9385
9385
|
function fe(i) {
|
|
9386
9386
|
return i ? class extends i {
|
|
9387
9387
|
set(e, t) {
|
|
@@ -11693,7 +11693,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
11693
11693
|
Br.prototype.is = function(i, e) {
|
|
11694
11694
|
return e ? e === this.name && (i === "editableElement" || i === "view:editableElement" || i === "containerElement" || i === "view:containerElement" || i === "element" || i === "view:element") : i === "editableElement" || i === "view:editableElement" || i === "containerElement" || i === "view:containerElement" || i === "element" || i === "view:element" || i === "node" || i === "view:node";
|
|
11695
11695
|
};
|
|
11696
|
-
const ju = Symbol("rootName");
|
|
11696
|
+
const ju = /* @__PURE__ */ Symbol("rootName");
|
|
11697
11697
|
class Hu extends Br {
|
|
11698
11698
|
constructor(e, t) {
|
|
11699
11699
|
super(e, t), this.rootName = "main";
|
|
@@ -12207,7 +12207,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
12207
12207
|
return this._currentTarget;
|
|
12208
12208
|
}
|
|
12209
12209
|
}
|
|
12210
|
-
const Ja = Symbol("bubbling contexts");
|
|
12210
|
+
const Ja = /* @__PURE__ */ Symbol("bubbling contexts");
|
|
12211
12211
|
function Xa(i) {
|
|
12212
12212
|
return class extends i {
|
|
12213
12213
|
fire(e, ...t) {
|
|
@@ -15141,7 +15141,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
15141
15141
|
return t || (t = this._addSymbolForTextProxy(e)), t;
|
|
15142
15142
|
}
|
|
15143
15143
|
_addSymbolForTextProxy(e) {
|
|
15144
|
-
const t = e.startOffset, n = e.endOffset, o = e.parent, r = Symbol("$textProxy:" + e.data);
|
|
15144
|
+
const t = e.startOffset, n = e.endOffset, o = e.parent, r = /* @__PURE__ */ Symbol("$textProxy:" + e.data);
|
|
15145
15145
|
let s, a;
|
|
15146
15146
|
return s = this._textProxyRegistry.get(t), s || (s = /* @__PURE__ */ new Map(), this._textProxyRegistry.set(t, s)), a = s.get(n), a || (a = /* @__PURE__ */ new Map(), s.set(n, a)), a.set(o, r), r;
|
|
15147
15147
|
}
|
|
@@ -21156,7 +21156,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
21156
21156
|
return { s: t ? Pi(this.hsva.s + 100 * e.x, 0, 100) : 100 * e.x, v: t ? Pi(this.hsva.v - 100 * e.y, 0, 100) : Math.round(100 - 100 * e.y) };
|
|
21157
21157
|
}
|
|
21158
21158
|
}
|
|
21159
|
-
const ss = Symbol("same"), Pl = Symbol("color"), mg = Symbol("hsva"), Ll = Symbol("update"), gg = Symbol("parts"), pg = Symbol("css"), fg = Symbol("sliders");
|
|
21159
|
+
const ss = /* @__PURE__ */ Symbol("same"), Pl = /* @__PURE__ */ Symbol("color"), mg = /* @__PURE__ */ Symbol("hsva"), Ll = /* @__PURE__ */ Symbol("update"), gg = /* @__PURE__ */ Symbol("parts"), pg = /* @__PURE__ */ Symbol("css"), fg = /* @__PURE__ */ Symbol("sliders");
|
|
21160
21160
|
class y1 extends HTMLElement {
|
|
21161
21161
|
static get observedAttributes() {
|
|
21162
21162
|
return ["color"];
|
|
@@ -23078,7 +23078,7 @@ Read more: ${ce}#error-${i}`;
|
|
|
23078
23078
|
}));
|
|
23079
23079
|
}
|
|
23080
23080
|
}
|
|
23081
|
-
const Ri = Symbol("MainQueueId");
|
|
23081
|
+
const Ri = /* @__PURE__ */ Symbol("MainQueueId");
|
|
23082
23082
|
class Jx {
|
|
23083
23083
|
constructor() {
|
|
23084
23084
|
this._onEmptyCallbacks = [], this._queues = /* @__PURE__ */ new Map(), this._activeActions = 0;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as a } from "../../chunks/runtime.js";
|
|
3
3
|
import { css as l, html as n } from "lit";
|
|
4
|
-
import { LitElement as d, createEvent as o,
|
|
4
|
+
import { LitElement as d, createEvent as o, nothing as c, safeClassMap as e } from "@arcgis/lumina";
|
|
5
5
|
import { createRef as s, ref as r } from "lit/directives/ref.js";
|
|
6
6
|
import { Task as p } from "@lit/task";
|
|
7
7
|
import { unsafeGetElementDirection as h } from "@arcgis/toolkit/dom";
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
import type { FieldInfoLayer } from "./utils/basic.js";
|
|
5
5
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
@@ -193,7 +193,7 @@ export abstract class ArcgisFieldInfo extends LitElement {
|
|
|
193
193
|
/** Required layer instance. */
|
|
194
194
|
accessor layer: FieldInfoLayer | undefined;
|
|
195
195
|
/** View instance. If no view is provided all dates will show in 'system' timezone. */
|
|
196
|
-
accessor view:
|
|
196
|
+
accessor view: View | undefined;
|
|
197
197
|
/** Refresh the field info display after external changes are made. */
|
|
198
198
|
refresh(): Promise<void>;
|
|
199
199
|
/** Emitted once all information is displayed. */
|
|
@@ -1,4 +1,22 @@
|
|
|
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
|
+
import type Sublayer from "@arcgis/core/layers/support/Sublayer.js";
|
|
10
|
+
import type StreamLayer from "@arcgis/core/layers/StreamLayer.js";
|
|
11
|
+
import type ParquetLayer from "@arcgis/core/layers/ParquetLayer.js";
|
|
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";
|
|
17
|
+
import type CSVLayer from "@arcgis/core/layers/CSVLayer.js";
|
|
18
|
+
import type CatalogLayer from "@arcgis/core/layers/CatalogLayer.js";
|
|
19
|
+
import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.js";
|
|
2
20
|
|
|
3
21
|
/** @internal */
|
|
4
|
-
export type FieldInfoLayer =
|
|
22
|
+
export type FieldInfoLayer = CatalogFootprintLayer | CatalogLayer | CSVLayer | FeatureLayer | GeoJSONLayer | ImageryLayer | ImageryTileLayer | KnowledgeGraphSublayer | OGCFeatureLayer | OrientedImageryLayer | ParquetLayer | SceneLayer | StreamLayer | Sublayer | SubtypeGroupLayer | SubtypeSublayer | VoxelLayer | WCSLayer | WFSLayer;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
4
|
import type { IPickListFieldInfo, IPickListGroupInfo, IPopoverProps, LastSortBy } from "../../utils/types.js";
|
|
5
5
|
import type { FieldPickListLayer } from "./utils/types.js";
|
|
@@ -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.
|
|
@@ -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
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
2
|
import { c as y } from "../../chunks/runtime.js";
|
|
3
3
|
import { keyed as F } from "lit/directives/keyed.js";
|
|
4
|
-
import { LitElement as w, createEvent as n, renderElement as $,
|
|
4
|
+
import { LitElement as w, createEvent as n, renderElement as $, nothing as d, safeStyleMap as g, safeClassMap as S } from "@arcgis/lumina";
|
|
5
5
|
import { createRef as r, ref as h } from "lit/directives/ref.js";
|
|
6
6
|
import { html as l, css as C } from "lit";
|
|
7
7
|
import { Task as v } from "@lit/task";
|
|
@@ -1,8 +1,26 @@
|
|
|
1
|
-
|
|
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
|
+
import type SubtypeSublayer from "@arcgis/core/layers/support/SubtypeSublayer.js";
|
|
5
|
+
import type SubtypeGroupLayer from "@arcgis/core/layers/SubtypeGroupLayer.js";
|
|
6
|
+
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
|
+
import type CatalogFootprintLayer from "@arcgis/core/layers/catalog/CatalogFootprintLayer.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
|
|
@@ -1,130 +1,121 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { u as
|
|
4
|
-
import { substitute as
|
|
5
|
-
import { LitElement as
|
|
6
|
-
import { css as R, html as
|
|
2
|
+
import { c as M } from "../../chunks/runtime.js";
|
|
3
|
+
import { u as k } from "../../chunks/useT9n.js";
|
|
4
|
+
import { substitute as E } from "@arcgis/core/intl.js";
|
|
5
|
+
import { LitElement as I, nothing as h, safeStyleMap as v, safeClassMap as O } from "@arcgis/lumina";
|
|
6
|
+
import { css as R, html as y, svg as f } from "lit";
|
|
7
7
|
import { g as z } from "../../chunks/locale.js";
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
dataLine: "data-line",
|
|
13
|
-
averageDataLine: "average-data-line",
|
|
14
|
-
dataLineSymbol: "data-line-symbol"
|
|
15
|
-
}, F = R`:host{display:flex;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:flex;flex:1;direction:ltr}.svg{display:inline-block;flex:1;overflow:hidden}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;
|
|
16
|
-
function B(t, i, n, e, r) {
|
|
17
|
-
const [s, a] = r;
|
|
18
|
-
if (!t || a === 0 || s === 0 || n == null || i == null)
|
|
8
|
+
const F = R`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr}.svg{display:block;width:100%;height:100%}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;
|
|
9
|
+
function S(t, r, n, e, i) {
|
|
10
|
+
const [s, a] = i;
|
|
11
|
+
if (!t || a === 0 || s === 0 || n == null || r == null)
|
|
19
12
|
return null;
|
|
20
|
-
const o = n -
|
|
13
|
+
const o = n - r, c = (t.length > 1 ? t[t.length - 1].maxValue - t[0].minValue : 0) / o, [u, g] = e === "vertical" ? [a * c, s] : [a, s * c], b = t ? t.map((m) => m.count) : [], d = Math.max(...b);
|
|
21
14
|
return t.map((m) => {
|
|
22
|
-
const [
|
|
23
|
-
return [
|
|
15
|
+
const [p, $] = e === "vertical" ? [u / t.length, d !== 0 ? m.count / d * g : 0] : [d !== 0 ? m.count / d * u : 0, g / t.length], { maxValue: D } = m, x = n - D, [_, C] = e === "vertical" ? [0, x * (a / o)] : [s - $ - x * (s / o), a - p];
|
|
16
|
+
return [_, C, $, p];
|
|
24
17
|
});
|
|
25
18
|
}
|
|
26
|
-
function
|
|
19
|
+
function B(t, r, n, e, i) {
|
|
27
20
|
const s = [];
|
|
28
21
|
return t != null && s.push({
|
|
29
22
|
value: t,
|
|
30
23
|
symbol: "x̄",
|
|
31
|
-
lineClass:
|
|
32
|
-
}),
|
|
24
|
+
lineClass: "average-data-line"
|
|
25
|
+
}), r != null && n != null && e != null && s.push(...G(n, e, r, t)), i && s.push(...i), s;
|
|
33
26
|
}
|
|
34
|
-
function
|
|
27
|
+
function N(t, r, n, e, i) {
|
|
35
28
|
if (n == null)
|
|
36
29
|
return [0, 0, 0, 0];
|
|
37
|
-
const s = Math.round((
|
|
38
|
-
if (
|
|
30
|
+
const s = Math.round((i - n) / e * 100) / 100, [a, o] = t;
|
|
31
|
+
if (r === "vertical") {
|
|
39
32
|
let c = o - s * o || 1;
|
|
40
33
|
return c = Math.round(c) + 0.5, [0, "100%", c, c];
|
|
41
34
|
}
|
|
42
35
|
let l = s * a || 1;
|
|
43
36
|
return l = Math.round(l) + 0.5, [l, l, "100%", 0];
|
|
44
37
|
}
|
|
45
|
-
function
|
|
38
|
+
function P(t, r, n, e, i) {
|
|
46
39
|
if (n == null)
|
|
47
40
|
return [0, 0];
|
|
48
|
-
const s = Math.round((
|
|
49
|
-
return
|
|
41
|
+
const s = Math.round((i - n) / e * 100) / 100, [a, o] = t;
|
|
42
|
+
return r === "vertical" ? [a, o - s * o] : [0, s * a];
|
|
50
43
|
}
|
|
51
|
-
function
|
|
44
|
+
function T(t, r, n) {
|
|
52
45
|
if (!t || t.length === 0)
|
|
53
46
|
return null;
|
|
54
|
-
if (
|
|
55
|
-
const e = t.map((
|
|
56
|
-
...
|
|
57
|
-
color:
|
|
47
|
+
if (L(t)) {
|
|
48
|
+
const e = t.map((i) => ({
|
|
49
|
+
...i,
|
|
50
|
+
color: w(i.color ?? n)
|
|
58
51
|
}));
|
|
59
52
|
return e.unshift({
|
|
60
|
-
color:
|
|
53
|
+
color: r,
|
|
61
54
|
minValue: Number.NEGATIVE_INFINITY,
|
|
62
55
|
maxValue: e[0].minValue
|
|
63
56
|
}), e.push({
|
|
64
|
-
color:
|
|
57
|
+
color: r,
|
|
65
58
|
minValue: e[e.length - 1].maxValue,
|
|
66
59
|
maxValue: Number.POSITIVE_INFINITY
|
|
67
60
|
}), e;
|
|
68
61
|
} else
|
|
69
62
|
return t.map((e) => ({
|
|
70
63
|
...e,
|
|
71
|
-
color:
|
|
64
|
+
color: w(e.color ?? n)
|
|
72
65
|
}));
|
|
73
66
|
}
|
|
74
|
-
function
|
|
67
|
+
function A(t, r, n, e) {
|
|
75
68
|
if (!t || t.length === 0)
|
|
76
69
|
return n;
|
|
77
|
-
if (
|
|
78
|
-
const
|
|
79
|
-
if (
|
|
70
|
+
if (L(t)) {
|
|
71
|
+
const i = H(t, r);
|
|
72
|
+
if (i.length === 0)
|
|
80
73
|
return n;
|
|
81
74
|
if (e) {
|
|
82
|
-
const { color: s = n, weight: a } =
|
|
75
|
+
const { color: s = n, weight: a } = i[0], { color: o = n, weight: l } = i[1] ?? i[0], c = a + l;
|
|
83
76
|
return `color-mix(in srgb, ${s} ${a / c * 100}%, ${o} ${l / c * 100}%)`;
|
|
84
77
|
}
|
|
85
|
-
return
|
|
78
|
+
return i[0].color ?? n;
|
|
86
79
|
}
|
|
87
|
-
return
|
|
80
|
+
return W(t, r);
|
|
88
81
|
}
|
|
89
|
-
function
|
|
82
|
+
function H(t, r) {
|
|
90
83
|
const n = [];
|
|
91
84
|
for (const e of t) {
|
|
92
|
-
const
|
|
93
|
-
|
|
85
|
+
const i = Math.max(0, Math.min(r.maxValue, e.maxValue) - Math.max(r.minValue, e.minValue));
|
|
86
|
+
i > 0 && n.push({ color: e.color, weight: i });
|
|
94
87
|
}
|
|
95
|
-
return n.sort((e,
|
|
88
|
+
return n.sort((e, i) => i.weight - e.weight);
|
|
96
89
|
}
|
|
97
|
-
function
|
|
98
|
-
const n = (
|
|
90
|
+
function W(t, r) {
|
|
91
|
+
const n = (r.maxValue - r.minValue) / 2 + r.minValue;
|
|
99
92
|
if (n > t[t.length - 1].value)
|
|
100
93
|
return t[t.length - 1].color;
|
|
101
94
|
for (let e = 0; e < t.length - 1; e++) {
|
|
102
|
-
const
|
|
103
|
-
if (n <=
|
|
104
|
-
return
|
|
95
|
+
const i = t[e], s = t[e + 1];
|
|
96
|
+
if (n <= i.value)
|
|
97
|
+
return i.color;
|
|
105
98
|
if (n < s.value) {
|
|
106
|
-
const a = (n -
|
|
107
|
-
return `color-mix(in srgb, ${
|
|
99
|
+
const a = (n - i.value) / (s.value - i.value) * 100;
|
|
100
|
+
return `color-mix(in srgb, ${i.color}, ${s.color} ${a}%)`;
|
|
108
101
|
}
|
|
109
102
|
}
|
|
110
103
|
return t[t.length - 1].color;
|
|
111
104
|
}
|
|
112
|
-
function
|
|
105
|
+
function L(t) {
|
|
113
106
|
return t[0] != null && "minValue" in t[0];
|
|
114
107
|
}
|
|
115
|
-
function
|
|
116
|
-
if (!t)
|
|
117
|
-
return;
|
|
108
|
+
function w(t) {
|
|
118
109
|
if (typeof t == "string")
|
|
119
110
|
return t;
|
|
120
111
|
if (Array.isArray(t))
|
|
121
112
|
return `rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3] ?? 1})`;
|
|
122
|
-
const { r
|
|
123
|
-
return `rgba(${
|
|
113
|
+
const { r, g: n, b: e, a: i = 1 } = t;
|
|
114
|
+
return `rgba(${r}, ${n}, ${e}, ${i})`;
|
|
124
115
|
}
|
|
125
|
-
function
|
|
126
|
-
const
|
|
127
|
-
return
|
|
116
|
+
function G(t, r, n, e) {
|
|
117
|
+
const i = 0.06 * (r - t);
|
|
118
|
+
return Y(n, e).filter((s) => Math.abs(e - s) > i).map((s, a, o) => {
|
|
128
119
|
const l = o.length / 2, c = s > e ? "+" : "-", u = a >= l ? a - l + 1 : l - a;
|
|
129
120
|
return {
|
|
130
121
|
symbol: `${c}${u === 1 ? "" : u}σ`,
|
|
@@ -132,18 +123,18 @@ function Y(t, i, n, e) {
|
|
|
132
123
|
};
|
|
133
124
|
});
|
|
134
125
|
}
|
|
135
|
-
function
|
|
136
|
-
if (
|
|
126
|
+
function Y(t, r) {
|
|
127
|
+
if (r == null || t == null)
|
|
137
128
|
return [];
|
|
138
129
|
const n = 1, e = [];
|
|
139
|
-
for (let
|
|
140
|
-
|
|
130
|
+
for (let i = n * -1; i <= n; i++)
|
|
131
|
+
i !== 0 && e.push(r + i * t);
|
|
141
132
|
return e;
|
|
142
133
|
}
|
|
143
|
-
const V = "var(--arcgis-histogram-bar-color)",
|
|
144
|
-
class
|
|
134
|
+
const V = "var(--arcgis-histogram-bar-color)", U = "var(--arcgis-histogram-stop-color)";
|
|
135
|
+
class j extends I {
|
|
145
136
|
constructor() {
|
|
146
|
-
super(...arguments), this._messages =
|
|
137
|
+
super(...arguments), this._messages = k(), this._normalizedStops = null, this._formatLabel = (r) => z(this._messages._lang, this._numberFormatterOptions).format(r), this._numberFormatterOptions = {
|
|
147
138
|
maximumFractionDigits: 2
|
|
148
139
|
}, this.containerDimensions = [0, 0], this.icon = "graph-histogram", this.layout = "horizontal", this.colorBlendingEnabled = !1;
|
|
149
140
|
}
|
|
@@ -154,43 +145,43 @@ class q extends k {
|
|
|
154
145
|
this.styles = F;
|
|
155
146
|
}
|
|
156
147
|
loaded() {
|
|
157
|
-
const
|
|
158
|
-
for (const s of
|
|
148
|
+
const r = new ResizeObserver((i) => {
|
|
149
|
+
for (const s of i) {
|
|
159
150
|
const { width: a, height: o } = s.contentRect;
|
|
160
151
|
this.containerDimensions = [a, o];
|
|
161
152
|
}
|
|
162
153
|
}), { width: n, height: e } = this.el.getBoundingClientRect();
|
|
163
|
-
this.containerDimensions = [n, e],
|
|
154
|
+
this.containerDimensions = [n, e], r.observe(this.el);
|
|
164
155
|
}
|
|
165
|
-
willUpdate(
|
|
166
|
-
|
|
156
|
+
willUpdate(r) {
|
|
157
|
+
r.has("colorStops") && (this._normalizedStops = T(this.colorStops, V, U));
|
|
167
158
|
}
|
|
168
159
|
render() {
|
|
169
|
-
const { label:
|
|
170
|
-
return
|
|
160
|
+
const { label: r } = this;
|
|
161
|
+
return y`<div role=img .ariaLabel=${r ?? void 0} class="content">${this._renderContent()}</div>`;
|
|
171
162
|
}
|
|
172
163
|
_renderContent() {
|
|
173
|
-
const { containerDimensions: [
|
|
174
|
-
return
|
|
164
|
+
const { containerDimensions: [r, n] } = this, e = "bg-fill";
|
|
165
|
+
return r ? y`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${f`<defs><clipPath id=${e}><rect height=${n ?? h} width=${r ?? h} x=0 y=0 /></clipPath></defs><g style=${v({ clipPath: `url(#${e})` })}><g>${this._renderBars()}</g></g><g>${this._renderLines()}</g>`}</svg>` : null;
|
|
175
166
|
}
|
|
176
167
|
_renderBars() {
|
|
177
|
-
const { bins:
|
|
178
|
-
return !e || !
|
|
179
|
-
const [a, o, l, c] =
|
|
180
|
-
return
|
|
181
|
-
fill:
|
|
168
|
+
const { bins: r, _messages: n } = this, e = S(this.bins, this.min, this.max, this.layout, this.containerDimensions);
|
|
169
|
+
return !e || !r ? null : e.map((i, s) => {
|
|
170
|
+
const [a, o, l, c] = i, u = r[s], g = n?.barLabel ? E(n.barLabel, u) : "";
|
|
171
|
+
return f`<rect style=${v({
|
|
172
|
+
fill: A(this._normalizedStops, u, V, this.colorBlendingEnabled)
|
|
182
173
|
})} .ariaLabel=${g} data-index=${s ?? h} height=${c ?? h} role=img shape-rendering=crispEdges stroke-width=0 width=${l ?? h} x=${a ?? h} y=${o ?? h} />`;
|
|
183
174
|
});
|
|
184
175
|
}
|
|
185
176
|
_renderLines() {
|
|
186
|
-
return
|
|
177
|
+
return B(this.average, this.standardDeviation, this.min, this.max, this.dataLines)?.map((n) => q({ dataLine: n, containerDimensions: this.containerDimensions, layout: this.layout, min: this.min, max: this.max, labelFormatter: this._formatLabel }));
|
|
187
178
|
}
|
|
188
179
|
}
|
|
189
|
-
const
|
|
190
|
-
const { containerDimensions:
|
|
191
|
-
return
|
|
180
|
+
const q = (t) => {
|
|
181
|
+
const { containerDimensions: r, layout: n, min: e, max: i, dataLine: s, labelFormatter: a } = t, o = i != null && e != null ? i - e : 0, [l, c, u, g] = N(r, n, e, o, s.value), [b, d] = P(r, n, e, o, s.value), m = "symbol" in s ? [f`<tspan class="data-line-symbol">${s.symbol}</tspan>`, f`<tspan>${a(s.value)}</tspan>`] : s.label, p = "lineClass" in s && s.lineClass ? s.lineClass : "data-line";
|
|
182
|
+
return f`<g><title>${s.value}</title><line class=${O(p)} shape-rendering=crispEdges x1=${l ?? h} x2=${c ?? h} y1=${u ?? h} y2=${g ?? h} /><text class="label" text-anchor=end transform=${(n === "horizontal" ? "rotate(270)" : void 0) ?? h} x=${b ?? h} y=${d - 2}>${m}</text></g>`;
|
|
192
183
|
};
|
|
193
|
-
|
|
184
|
+
M("arcgis-histogram", j);
|
|
194
185
|
export {
|
|
195
|
-
|
|
186
|
+
j as ArcgisHistogram
|
|
196
187
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
2
|
-
|
|
3
1
|
export type DataLine = {
|
|
4
2
|
value: number;
|
|
5
|
-
label?:
|
|
3
|
+
label?: number | string | null;
|
|
6
4
|
};
|
|
7
5
|
|
|
8
6
|
export type HistogramColorStops = HistogramClassedColorStop[] | HistogramContinuousColorStop[];
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference path="../../index.d.ts" />
|
|
2
|
-
/// <reference types="@arcgis/core/interfaces.d.ts" />
|
|
3
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
3
|
import type { Button as Button } from "@esri/calcite-components/components/calcite-button";
|
|
5
4
|
import type { InputNumber as InputNumber } from "@esri/calcite-components/components/calcite-input-number";
|
|
@@ -14,15 +13,15 @@ export abstract class ArcgisLabelInput extends LitElement {
|
|
|
14
13
|
accessor alignment: Button["alignment"] & InputNumber["alignment"];
|
|
15
14
|
/**
|
|
16
15
|
* Indicates whether the component is in edit mode.
|
|
17
|
-
* This value changes when user interacts with the component or when [edit()](
|
|
18
|
-
* The value is always `false` when the component is in [
|
|
16
|
+
* This value changes when user interacts with the component or when [edit()](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#edit) is called.
|
|
17
|
+
* The value is always `false` when the component is in [readOnly](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#readOnly) mode.
|
|
19
18
|
*
|
|
20
19
|
* @default false
|
|
21
|
-
* @see [edit()](
|
|
20
|
+
* @see [edit()](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#edit)
|
|
22
21
|
*/
|
|
23
22
|
get editing(): boolean;
|
|
24
23
|
/** A function used to format the value. */
|
|
25
|
-
accessor labelFormatter: (
|
|
24
|
+
accessor labelFormatter: (value: number, defaultFormatter: (value: number) => string) => string | null | undefined;
|
|
26
25
|
/**
|
|
27
26
|
* Indicates whether the component is in read-only mode.
|
|
28
27
|
*
|
|
@@ -38,7 +37,7 @@ export abstract class ArcgisLabelInput extends LitElement {
|
|
|
38
37
|
/**
|
|
39
38
|
* Initiates the edit mode for the component.
|
|
40
39
|
*
|
|
41
|
-
* @see [editing](
|
|
40
|
+
* @see [editing](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-label-input/#editing)
|
|
42
41
|
*/
|
|
43
42
|
edit(): Promise<void>;
|
|
44
43
|
/** Fires each time a new value is typed and committed. */
|