@arcgis/common-components 5.1.0-next.6 → 5.1.0-next.61
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/{ZLXAKPUH.js → 3B5FXQSX.js} +1 -1
- package/dist/cdn/7AMLQYVM.js +4 -0
- package/dist/cdn/7JIHCVH3.js +2 -0
- package/dist/cdn/{4CW7U27R.js → 7OF5SF2A.js} +1 -1
- package/dist/cdn/{YVSTPEPS.js → ALWVIWUC.js} +1 -1
- package/dist/cdn/{C6JAR4IN.js → AQWVYBZF.js} +1 -1
- package/dist/cdn/{J5X5TNVW.js → DX3WIISQ.js} +1 -1
- package/dist/cdn/{7HQMPKZO.js → E4EVLDYS.js} +1 -1
- package/dist/cdn/{ZOWIFVL3.js → HEQCNDQR.js} +1 -1
- package/dist/cdn/{7CI55VCH.js → HYLC5GEB.js} +1 -1
- package/dist/cdn/{AXTSUI2Q.js → IQXW4J56.js} +1 -1
- package/dist/cdn/IRXTWEQW.js +2 -0
- package/dist/cdn/LYESES6I.js +2 -0
- package/dist/cdn/MB7UDGWW.js +2 -0
- package/dist/cdn/{3O7GAC23.js → N4R5SMWN.js} +1 -1
- package/dist/cdn/{4DCAUWTC.js → NHRIURQU.js} +1 -1
- package/dist/cdn/{7PB2GGQH.js → QH2547O7.js} +1 -1
- package/dist/cdn/QLSLMEU5.js +2 -0
- package/dist/cdn/{XEB2RUND.js → SF2NJOD3.js} +1 -1
- package/dist/cdn/{7Y42J3JI.js → YOEHJTF2.js} +1 -1
- package/dist/cdn/{23DDMSOB.js → ZCGHCFFN.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/commonFunctions.js +7 -3
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +1 -0
- package/dist/components/arcgis-ckeditor5/types.d.ts +9 -0
- package/dist/components/arcgis-ckeditor5-popover/customElement.d.ts +1 -0
- package/dist/components/arcgis-ckeditor5-popover/customElement.js +1 -1
- package/dist/components/arcgis-color-input/customElement.d.ts +1 -0
- package/dist/components/arcgis-field-info/customElement.d.ts +3 -2
- package/dist/components/arcgis-field-info/utils/basic.d.ts +21 -2
- package/dist/components/arcgis-field-pick-list/customElement.d.ts +4 -3
- package/dist/components/arcgis-field-pick-list/customElement.js +1 -1
- package/dist/components/arcgis-field-pick-list/utils/types.d.ts +25 -3
- package/dist/components/arcgis-histogram/customElement.d.ts +21 -21
- 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 +6 -6
- package/dist/components/arcgis-label-input/customElement.js +22 -17
- package/dist/components/arcgis-picker-input/customElement.d.ts +1 -0
- package/dist/components/arcgis-picker-input/customElement.js +11 -11
- package/dist/components/arcgis-ramp-color/customElement.d.ts +2 -0
- package/dist/components/arcgis-ramp-color-break/customElement.d.ts +2 -0
- package/dist/components/arcgis-ramp-opacity/customElement.d.ts +1 -0
- package/dist/components/arcgis-slider/customElement.d.ts +53 -55
- package/dist/components/arcgis-slider/customElement.js +383 -343
- package/dist/components/arcgis-slider-input/customElement.d.ts +1 -0
- package/dist/components/arcgis-ticks/customElement.d.ts +17 -22
- package/dist/components/arcgis-ticks/customElement.js +1 -1
- package/dist/components/arcgis-ticks/types.d.ts +23 -0
- package/dist/components/arcgis-unique-values-list/customElement.d.ts +14 -5
- package/dist/components/arcgis-unique-values-list/customElement.js +158 -151
- package/dist/components/arcgis-unique-values-list/utils/basic.d.ts +14 -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/loader.js +1 -1
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/types.d.ts +24 -7
- package/package.json +5 -5
- package/dist/cdn/2BDHDUXG.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/ZL3E4ZGE.js +0 -2
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import { c as
|
|
3
|
-
import { css as
|
|
4
|
-
import { LitElement as
|
|
5
|
-
import { createRef as
|
|
6
|
-
const
|
|
7
|
-
class
|
|
2
|
+
import { c as n } from "../../chunks/runtime.js";
|
|
3
|
+
import { css as l, html as o } from "lit";
|
|
4
|
+
import { LitElement as a, createEvent as i, safeStyleMap as r } from "@arcgis/lumina";
|
|
5
|
+
import { createRef as c, ref as t } from "lit/directives/ref.js";
|
|
6
|
+
const p = l`:host{display:flex}:host([disabled]){opacity:.25;pointer-events:none}button{overflow:hidden;background-color:transparent;align-items:center;border:none;border-radius:0;box-sizing:border-box;cursor:pointer;display:flex;font-family:inherit;gap:var(--calcite-space-sm);height:100%;justify-content:center;outline-color:transparent;outline-offset:0;padding:3px 0;padding-inline:3px var(--calcite-space-sm);position:relative;text-decoration:none;user-select:none;text-align:center;-webkit-appearance:none;width:100%;&:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}&:hover{text-decoration:none}}.preview{border:var(--calcite-border-width-sm) solid #949494;display:flex;align-items:center;flex-grow:1}.container{display:flex;gap:5px;width:100%}::slotted([slot="preview"]){flex-grow:1;display:flex}calcite-icon{color:var(--calcite-color-text-3)}`;
|
|
7
|
+
class d extends a {
|
|
8
8
|
constructor() {
|
|
9
|
-
super(), this.panelEl =
|
|
9
|
+
super(), this.panelEl = c(), this.open = !1, this.disabled = !1, this.iconEnd = "pencil", this.label = "", this.arcgisPopoverOpen = i(), this.arcgisPopoverClose = i(), this.listenOn(document.body, "arcgisPopoverOpen", this.onPopoverOpen);
|
|
10
10
|
}
|
|
11
11
|
static {
|
|
12
12
|
this.properties = { open: 16, disabled: 7, heading: 1, iconEnd: 1, intlDone: 1, label: 1, popoverProps: 0 };
|
|
13
13
|
}
|
|
14
14
|
static {
|
|
15
|
-
this.styles =
|
|
15
|
+
this.styles = p;
|
|
16
16
|
}
|
|
17
17
|
async close() {
|
|
18
18
|
this.onPopoverClose();
|
|
@@ -48,10 +48,10 @@ class p extends l {
|
|
|
48
48
|
}
|
|
49
49
|
render() {
|
|
50
50
|
const { popoverProps: e } = this;
|
|
51
|
-
return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance ?? 0} .offsetSkidding=${e?.offsetSkidding ?? 0} .flipDisabled=${e?.flipDisabled ?? !1} .open=${this.disabled ? !1 : this.open} .overlayPositioning=${e?.overlayPositioning ?? "fixed"} .placement=${e?.placement ?? "bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} .referenceElement=${e?.refElement ?? this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${
|
|
51
|
+
return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance ?? 0} .offsetSkidding=${e?.offsetSkidding ?? 0} .flipDisabled=${e?.flipDisabled ?? !1} .open=${this.disabled ? !1 : this.open} .overlayPositioning=${e?.overlayPositioning ?? "fixed"} .placement=${e?.placement ?? "bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} @calcitePopoverClose=${(s) => s.stopPropagation()} .referenceElement=${e?.refElement ?? this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${r(e?.maxHeight ? { maxHeight: e.maxHeight } : void 0)} @calcitePanelClose=${this.handlePanelClose} ${t(this.panelEl)}><slot name=content></slot><calcite-button appearance=solid slot=footer width=full .label=${this.intlDone} @click=${this.onPopoverClose}>${this.intlDone}</calcite-button></calcite-panel></calcite-popover><div class="container"><div class="preview" ${t(this.setPreviewContainerRef)}><button .disabled=${this.disabled} @click=${this.handleButtonClick} type=button .ariaLabel=${this.label} ${t(this.setButtonRef)}><slot name=preview></slot>${this.iconEnd ? o`<calcite-icon .icon=${this.iconEnd} scale=s></calcite-icon>` : null}</button></div><slot name=content-end></slot></div>`;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
n("arcgis-picker-input", d);
|
|
55
55
|
export {
|
|
56
|
-
|
|
56
|
+
d as ArcgisPickerInput
|
|
57
57
|
};
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import type Color from "@arcgis/core/Color.js";
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
|
|
5
|
+
/** @internal */
|
|
5
6
|
export abstract class ArcgisRampColor extends LitElement {
|
|
6
7
|
/** @default "horizontal" */
|
|
7
8
|
accessor layout: "horizontal" | "vertical";
|
|
@@ -12,6 +13,7 @@ export abstract class ArcgisRampColor extends LitElement {
|
|
|
12
13
|
accessor stops: ColorStop[];
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
/** @internal */
|
|
15
17
|
export interface ColorStop {
|
|
16
18
|
color: Color | string;
|
|
17
19
|
value: number;
|
|
@@ -3,6 +3,7 @@ import type Color from "@arcgis/core/Color.js";
|
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { ArcgisRampColor } from "../arcgis-ramp-color/customElement.js";
|
|
5
5
|
|
|
6
|
+
/** @internal */
|
|
6
7
|
export abstract class ArcgisRampColorBreak extends LitElement {
|
|
7
8
|
/** @default "horizontal" */
|
|
8
9
|
accessor layout: ArcgisRampColor["layout"];
|
|
@@ -13,6 +14,7 @@ export abstract class ArcgisRampColorBreak extends LitElement {
|
|
|
13
14
|
accessor stops: ColorBreak[];
|
|
14
15
|
}
|
|
15
16
|
|
|
17
|
+
/** @internal */
|
|
16
18
|
export interface ColorBreak {
|
|
17
19
|
color: Color | string;
|
|
18
20
|
max: number;
|
|
@@ -3,6 +3,7 @@ import type Color from "@arcgis/core/Color.js";
|
|
|
3
3
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
4
4
|
import type { ArcgisRampColor } from "../arcgis-ramp-color/customElement.js";
|
|
5
5
|
|
|
6
|
+
/** @internal */
|
|
6
7
|
export abstract class ArcgisRampOpacity extends LitElement {
|
|
7
8
|
accessor fillColor: Color | string;
|
|
8
9
|
/** @default "horizontal" */
|
|
@@ -1,13 +1,12 @@
|
|
|
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 { T9nMeta } from "@arcgis/lumina/controllers";
|
|
5
4
|
import type { Popover as Popover } from "@esri/calcite-components/components/calcite-popover";
|
|
6
5
|
|
|
7
6
|
/**
|
|
8
7
|
* The Slider component is used to filter data or collect numeric input from users. It supports single or multiple thumbs, configured via the
|
|
9
|
-
* [values](
|
|
10
|
-
* configurable value [precision](
|
|
8
|
+
* [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) property. The Slider can be displayed in horizontal or vertical [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout), supports snapping to defined [steps](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#steps),
|
|
9
|
+
* configurable value [precision](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#precision), and custom [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#labelFormatter). It also includes keyboard interaction,
|
|
11
10
|
* optional editable labels, and customizable popover content.
|
|
12
11
|
*
|
|
13
12
|
* The slider component can be set up with the [arcgis-ticks](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-ticks/) component. See the example below:
|
|
@@ -18,17 +17,16 @@ import type { Popover as Popover } from "@esri/calcite-components/components/cal
|
|
|
18
17
|
* </arcgis-slider>
|
|
19
18
|
* ```
|
|
20
19
|
*
|
|
21
|
-
*
|
|
20
|
+
* ## Which slider should you use: arcgis-slider or calcite-slider?
|
|
22
21
|
* >
|
|
23
|
-
* >
|
|
24
|
-
* > It covers common slider use cases and works well in most scenarios.
|
|
22
|
+
* > Use [calcite-slider](https://developers.arcgis.com/calcite-design-system/components/slider/) by default. It provides a consistent UI/UX and supports most common slider use cases.
|
|
25
23
|
* >
|
|
26
|
-
* >
|
|
27
|
-
* >
|
|
28
|
-
* > *
|
|
29
|
-
* >
|
|
30
|
-
* > *
|
|
31
|
-
* > *
|
|
24
|
+
* > Choose `arcgis-slider` when you need more advanced behavior, such as:
|
|
25
|
+
* >
|
|
26
|
+
* > * A vertical slider via [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout).
|
|
27
|
+
* > * More than two [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) in a single slider.
|
|
28
|
+
* > * A display range that extends beyond the interactive range using [fullRangeMin](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMin) and [fullRangeMax](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMax).
|
|
29
|
+
* > * Additional slotted content using the `content-start`, `content-end`, or `popover` [slots](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#slots).
|
|
32
30
|
*
|
|
33
31
|
* @slot [content-start] - A slot for elements before the track.
|
|
34
32
|
* @slot [content-end] - A slot for elements after the track.
|
|
@@ -41,14 +39,14 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
41
39
|
* so it may reflect the thumb’s last set position.
|
|
42
40
|
*
|
|
43
41
|
*
|
|
44
|
-
* It returns
|
|
42
|
+
* It returns:
|
|
45
43
|
* - `undefined` when no value is active
|
|
46
44
|
* - a `number` when a single value is active
|
|
47
45
|
* - `"all"` when the range (segment) is active
|
|
48
46
|
*
|
|
49
|
-
* Listen to [arcgisActiveValueChange](
|
|
47
|
+
* Listen to [@arcgisActiveValueChange](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#event-arcgisActiveValueChange) to be notified when a value becomes active or inactive.
|
|
50
48
|
*
|
|
51
|
-
* @see [arcgisActiveValueChange](
|
|
49
|
+
* @see [@arcgisActiveValueChange](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#event-arcgisActiveValueChange)
|
|
52
50
|
*/
|
|
53
51
|
get activeValue(): number | "all" | undefined;
|
|
54
52
|
/**
|
|
@@ -82,13 +80,13 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
82
80
|
*/
|
|
83
81
|
accessor fillPlacement: "end" | "none" | "start";
|
|
84
82
|
/**
|
|
85
|
-
* Sets the maximum value of the slider
|
|
86
|
-
* When specified, the slider track is scaled from [fullRangeMin](
|
|
87
|
-
* the thumbs remain constrained to the interactive range defined by [min](
|
|
83
|
+
* Sets the maximum value of the slider's displayed range.
|
|
84
|
+
* When specified, the slider track is scaled from [fullRangeMin](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMin) to `fullRangeMax`, while
|
|
85
|
+
* the thumbs remain constrained to the interactive range defined by [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max).
|
|
88
86
|
*
|
|
89
|
-
* The `fullRangeMax` must be greater than or equal to [max](
|
|
87
|
+
* The `fullRangeMax` must be greater than or equal to [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) property of the slider.
|
|
90
88
|
*
|
|
91
|
-
* @see [fullRangeMin](
|
|
89
|
+
* @see [fullRangeMin](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMin)
|
|
92
90
|
* @example
|
|
93
91
|
* ```html
|
|
94
92
|
* <!-- Slider with a full range from 0 to 100, while only allowing thumb values between 25 and 75. -->
|
|
@@ -97,13 +95,13 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
97
95
|
*/
|
|
98
96
|
accessor fullRangeMax: number | undefined;
|
|
99
97
|
/**
|
|
100
|
-
* Sets the minimum value of the slider
|
|
101
|
-
* When specified, the slider track is scaled from `fullRangeMin` to [fullRangeMax](
|
|
102
|
-
* the thumbs remain constrained to the range defined by [min](
|
|
98
|
+
* Sets the minimum value of the slider's displayed range.
|
|
99
|
+
* When specified, the slider track is scaled from `fullRangeMin` to [fullRangeMax](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMax), while
|
|
100
|
+
* the thumbs remain constrained to the range defined by [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max).
|
|
103
101
|
*
|
|
104
|
-
* The `fullRangeMin` must be less than or equal to [min](
|
|
102
|
+
* The `fullRangeMin` must be less than or equal to [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) property of the slider.
|
|
105
103
|
*
|
|
106
|
-
* @see [fullRangeMax](
|
|
104
|
+
* @see [fullRangeMax](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMax)
|
|
107
105
|
* @example
|
|
108
106
|
* ```html
|
|
109
107
|
* <!-- Slider with a full range from 0 to 100, while only allowing thumb values between 25 and 75. -->
|
|
@@ -123,7 +121,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
123
121
|
*/
|
|
124
122
|
accessor keyboardLargeStep: number;
|
|
125
123
|
/**
|
|
126
|
-
* Allows customizing how slider labels are formatted for [min](
|
|
124
|
+
* Allows customizing how slider labels are formatted for [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min), [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max), and thumb values.
|
|
127
125
|
* The formatted value is used for the visible labels and for the thumb’s accessible value text via `aria-valuetext`.
|
|
128
126
|
* Return `null` or `undefined` to use the default formatting.
|
|
129
127
|
*
|
|
@@ -150,24 +148,24 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
150
148
|
* };
|
|
151
149
|
* ```
|
|
152
150
|
*/
|
|
153
|
-
accessor labelFormatter: (
|
|
151
|
+
accessor labelFormatter: (value: number, type: "max" | "min" | "value", defaultFormatter: (value: number) => string) => string | null | undefined;
|
|
154
152
|
/**
|
|
155
153
|
* Determines the layout/orientation of the Slider component. By default, the slider will render horizontally with the min value on the left side
|
|
156
154
|
* of the track.
|
|
157
155
|
*
|
|
158
156
|
* @default "horizontal"
|
|
159
|
-
* @see [mirrored](
|
|
157
|
+
* @see [mirrored](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#mirrored)
|
|
160
158
|
*/
|
|
161
159
|
accessor layout: "horizontal" | "vertical";
|
|
162
160
|
/**
|
|
163
161
|
* The maximum value for the slider thumbs. Thumbs will not move past this value.
|
|
164
162
|
*
|
|
165
|
-
* To display the `max` label on the slider, set [showRangeLabels](
|
|
166
|
-
* To allow the end user to modify the `max` value, set [rangeLabelsEditingEnabled](
|
|
163
|
+
* To display the `max` label on the slider, set [showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels) to `true`.
|
|
164
|
+
* To allow the end user to modify the `max` value, set [rangeLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#rangeLabelsEditingEnabled) to `true`.
|
|
167
165
|
*
|
|
168
|
-
* @see [rangeLabelsEditingEnabled](
|
|
169
|
-
* @see [showRangeLabels](
|
|
170
|
-
* @see [fullRangeMax](
|
|
166
|
+
* @see [rangeLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#rangeLabelsEditingEnabled)
|
|
167
|
+
* @see [showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels)
|
|
168
|
+
* @see [fullRangeMax](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#fullRangeMax)
|
|
171
169
|
*/
|
|
172
170
|
accessor max: number;
|
|
173
171
|
/**
|
|
@@ -201,18 +199,18 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
201
199
|
}>;
|
|
202
200
|
/**
|
|
203
201
|
* The minimum value for the slider thumbs. Thumbs will not move past this value.
|
|
204
|
-
* To display the `min` label on the slider, set [showRangeLabels](
|
|
205
|
-
* To allow the end user to modify the `min` value, set [rangeLabelsEditingEnabled](
|
|
202
|
+
* To display the `min` label on the slider, set [showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels) to `true`.
|
|
203
|
+
* To allow the end user to modify the `min` value, set [rangeLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#rangeLabelsEditingEnabled) to `true`.
|
|
206
204
|
*
|
|
207
|
-
* @see [rangeLabelsEditingEnabled](
|
|
208
|
-
* @see [showRangeLabels](
|
|
205
|
+
* @see [rangeLabelsEditingEnabled](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#rangeLabelsEditingEnabled)
|
|
206
|
+
* @see [showRangeLabels](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#showRangeLabels)
|
|
209
207
|
*/
|
|
210
208
|
accessor min: number;
|
|
211
209
|
/**
|
|
212
210
|
* When `true`, the slider will display values from high to low. This inverts the direction of the slider.
|
|
213
211
|
*
|
|
214
212
|
* @default false
|
|
215
|
-
* @see [layout](
|
|
213
|
+
* @see [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout)
|
|
216
214
|
*/
|
|
217
215
|
accessor mirrored: boolean;
|
|
218
216
|
/**
|
|
@@ -268,8 +266,8 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
268
266
|
* The labels of the thumbs will display two decimal places, but the precision of the actual
|
|
269
267
|
* thumb values will not be lost even when the user slides or moves the thumb.
|
|
270
268
|
*
|
|
271
|
-
* Keep in mind this property rounds thumb [values](
|
|
272
|
-
* for formatting purposes. To format thumb `labels`, use the [labelFormatter](
|
|
269
|
+
* Keep in mind this property rounds thumb [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) and shouldn't be used exclusively
|
|
270
|
+
* for formatting purposes. To format thumb `labels`, use the [labelFormatter](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#labelFormatter)
|
|
273
271
|
* property.
|
|
274
272
|
*
|
|
275
273
|
* @default 4
|
|
@@ -282,18 +280,18 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
282
280
|
*/
|
|
283
281
|
accessor precision: number;
|
|
284
282
|
/**
|
|
285
|
-
* When `true`, users can edit the [min](
|
|
283
|
+
* When `true`, users can edit the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range labels via keyboard input.
|
|
286
284
|
* Editing these labels updates the slider’s interactive range.
|
|
287
285
|
*
|
|
288
286
|
* @default false
|
|
289
287
|
*/
|
|
290
288
|
accessor rangeLabelsEditingEnabled: boolean;
|
|
291
289
|
/**
|
|
292
|
-
* Controls where the [min](
|
|
293
|
-
* This property only affects the slider when [layout](
|
|
290
|
+
* Controls where the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range labels are positioned relative to the track.
|
|
291
|
+
* This property only affects the slider when [layout](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#layout) is `"horizontal"`.
|
|
294
292
|
*
|
|
295
|
-
* - `"center"` (default): Places the [min](
|
|
296
|
-
* - `"end"`: Places the range labels below the
|
|
293
|
+
* - `"center"` (default): Places the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) labels aligned with the track.
|
|
294
|
+
* - `"end"`: Places the range labels below the track.
|
|
297
295
|
*
|
|
298
296
|
* @default "center"
|
|
299
297
|
*/
|
|
@@ -305,7 +303,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
305
303
|
*/
|
|
306
304
|
accessor segmentsDraggingDisabled: boolean;
|
|
307
305
|
/**
|
|
308
|
-
* Indicates whether
|
|
306
|
+
* Indicates whether [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range labels are visible on the slider.
|
|
309
307
|
*
|
|
310
308
|
* @default false
|
|
311
309
|
*/
|
|
@@ -320,7 +318,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
320
318
|
* slider range at an interval of the provided value. In this scenario,
|
|
321
319
|
* the user may only slide the thumbs to values at the provided interval.
|
|
322
320
|
* For example, if a value of `0.5` is set here, and the slider
|
|
323
|
-
* [min](
|
|
321
|
+
* [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) is `0` and the slider [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) is `10`, then the user will
|
|
324
322
|
* only be able to update the thumbs to values of 0, 0.5, 1.0, 1.5, 2.0, etc.
|
|
325
323
|
*
|
|
326
324
|
* @example
|
|
@@ -352,7 +350,7 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
352
350
|
* when the user clicks a thumb value label. This allows the user to move the slider
|
|
353
351
|
* thumb to precise values without sliding the thumbs.
|
|
354
352
|
*
|
|
355
|
-
* 
|
|
356
354
|
*
|
|
357
355
|
* @default false
|
|
358
356
|
*/
|
|
@@ -368,9 +366,9 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
368
366
|
/** Permanently destroys the component. */
|
|
369
367
|
destroy(): Promise<void>;
|
|
370
368
|
/**
|
|
371
|
-
* Fires when the [activeValue](
|
|
372
|
-
* This event does not fire when [values](
|
|
373
|
-
* [arcgisChange](
|
|
369
|
+
* Fires when the [activeValue](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#activeValue) changes as a thumb or the range gains or loses focus.
|
|
370
|
+
* This event does not fire when [values](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#values) change. Use [@arcgisInput](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#event-arcgisInput) for continuous updates or
|
|
371
|
+
* [@arcgisChange](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#event-arcgisChange) when the interaction is committed.
|
|
374
372
|
*
|
|
375
373
|
* @example
|
|
376
374
|
* ```js
|
|
@@ -396,13 +394,13 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
396
394
|
*
|
|
397
395
|
* renderActive();
|
|
398
396
|
* ```
|
|
399
|
-
* @see [activeValue](
|
|
397
|
+
* @see [activeValue](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#activeValue)
|
|
400
398
|
*/
|
|
401
399
|
readonly arcgisActiveValueChange: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
402
400
|
/**
|
|
403
401
|
* Fires when the thumb or range is released on the component.
|
|
404
402
|
*
|
|
405
|
-
* Use [arcgisInput](
|
|
403
|
+
* Use [@arcgisInput](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#event-arcgisInput) for continuous updates during a drag.
|
|
406
404
|
*
|
|
407
405
|
* @example
|
|
408
406
|
* ```js
|
|
@@ -450,8 +448,8 @@ export abstract class ArcgisSlider extends LitElement {
|
|
|
450
448
|
*/
|
|
451
449
|
readonly arcgisInput: import("@arcgis/lumina").TargetedEvent<this, void>;
|
|
452
450
|
/**
|
|
453
|
-
* Fires when the slider's [min](
|
|
454
|
-
* This occurs when the user edits the [min](
|
|
451
|
+
* Fires when the slider's [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) and [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range changes.
|
|
452
|
+
* This occurs when the user edits the [min](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#min) or [max](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-slider/#max) range labels (when enabled).
|
|
455
453
|
*
|
|
456
454
|
* @example
|
|
457
455
|
* ```js
|