@arcgis/common-components 5.2.0-next.117 → 5.2.0-next.119
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/dist/cdn/{ZMZH3Z5A.js → J3ZPF2AN.js} +1 -1
- package/dist/cdn/NCCT3TQT.js +2 -0
- package/dist/cdn/{LTLS7FQ7.js → UJ3EKV7H.js} +1 -1
- 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.es.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/field-info/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-ticks/customElement.d.ts +11 -0
- package/dist/components/arcgis-ticks/customElement.js +19 -16
- package/dist/components/arcgis-toolbar-action/customElement.js +5 -5
- package/dist/components/arcgis-toolbar-item/customElement.js +4 -4
- package/dist/components/arcgis-value-picker/customElement.d.ts +4 -3
- package/dist/components/arcgis-value-picker/types.d.ts +2 -4
- 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/package.json +4 -4
- package/dist/cdn/PSVNG2MS.js +0 -2
|
@@ -16,17 +16,17 @@ const l = {
|
|
|
16
16
|
tickLabelText: "tick-label-text",
|
|
17
17
|
baseline: "baseline"
|
|
18
18
|
}, A = C`:host{display:flex;--arcgis-ticks-font-size: var(--calcite-font-size--2);--arcgis-ticks-font-weight: var(--calcite-font-weight-medium);--arcgis-ticks-gap: 1em;--arcgis-ticks-tick-color: var(--calcite-color-border-input);--arcgis-ticks-tick-length: .5rem;--arcgis-ticks-tick-transform: translateX(-50%);--arcgis-ticks-tick-width: .125rem}.container{align-items:stretch;display:flex;color:var(--calcite-color-text-2);flex:1;font-weight:var(--arcgis-ticks-font-weight);font-size:var(--arcgis-ticks-font-size);line-height:1em;position:relative;user-select:none;word-wrap:normal;word-break:normal}.baseline{background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick{position:absolute;background-color:var(--arcgis-ticks-tick-color, var(--calcite-color-border-input))}.tick-label{position:absolute;text-align:var(--arcgis-ticks-label-text-align, center);width:var(--arcgis-ticks-label-width, var(--labels-container-width, "auto"))}.tick-label-text{display:inline-block;line-height:1}.tick-label--focused .tick-label-text{outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:dir(rtl){.tick-label{direction:rtl}}:host([layout="horizontal"]){.ticks-container{height:var(--arcgis-ticks-tick-length)}.labels-container{height:var(--labels-container-height, "auto")}.tick{width:var(--arcgis-ticks-tick-width);height:var(--arcgis-ticks-tick-length);transform:var(--arcgis-ticks-tick-transform)}.tick-label{transform:translate(-50%)}.tick--min{transform:unset}.tick--max{transform:translate(-100%)}}:host([layout="vertical"]){.ticks-container{width:var(--arcgis-ticks-tick-length)}.labels-container{width:var(--labels-container-width)}.tick{width:var(--arcgis-ticks-tick-length);height:var(--arcgis-ticks-tick-width);transform:translateY(50%)}.tick-label{text-align:right;transform:translateY(50%)}.tick--min{transform:unset}.tick--max{transform:translateY(100%)}}:host([layout="horizontal"][mirrored]){.tick,.tick-label{transform:translate(50%)}.tick--min{transform:unset}.tick--max{transform:translate(100%)}}:host([layout="vertical"][mirrored]){.tick,.tick-label{transform:translateY(-50%)}.tick--min{transform:unset}.tick--max{transform:translateY(-100%)}}:host([layout="horizontal"][label-placement="start"]){.container{flex-direction:column;justify-content:flex-end}.labels-container{margin-bottom:var(--arcgis-ticks-gap)}}:host([layout="horizontal"][label-placement="end"]){.container{flex-direction:column-reverse;justify-content:flex-end}.labels-container{margin-top:var(--arcgis-ticks-gap)}}:host([layout="vertical"][label-placement="start"]){.container{flex-direction:row;justify-content:flex-end}:dir(ltr){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right}}:dir(rtl){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left;unicode-bidi:plaintext}}}:host([layout="vertical"][label-placement="end"]){.container{flex-direction:row-reverse;justify-content:flex-end}:dir(ltr){.labels-container{margin-left:var(--arcgis-ticks-gap)}.tick-label{text-align:left}}:dir(rtl){.labels-container{margin-right:var(--arcgis-ticks-gap)}.tick-label{text-align:right;unicode-bidi:plaintext}}}:host([interactive]){pointer-events:none;.tick,.tick-label{pointer-events:auto;cursor:pointer}.tick-label-text:hover{text-decoration:underline}.tick:focus{background-color:var(--calcite-color-brand);outline:2px solid var(--calcite-color-focus, var(--calcite-color-brand));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}`;
|
|
19
|
-
class
|
|
19
|
+
class D extends F {
|
|
20
20
|
constructor() {
|
|
21
21
|
super(...arguments), this._messages = T({ name: null }), this.#t = (t) => z(this._messages._lang, this._formatOptions).format(t), this._activeTick = null, this._formatOptions = {
|
|
22
22
|
style: "decimal",
|
|
23
23
|
useGrouping: !0,
|
|
24
24
|
minimumFractionDigits: 0,
|
|
25
25
|
maximumFractionDigits: 2
|
|
26
|
-
}, this.interactive = !1, this.interpolationExponent = 0, this.labelPlacement = "end", this.layout = "horizontal", this.max = 100, this.min = 0, this.mirrored = !1, this.mode = "count", this.showLabels = !1, this.showBaseline = !1, this.values = [], this.arcgisTickClick = L({ cancelable: !1 });
|
|
26
|
+
}, this.autoDestroyDisabled = !1, this.interactive = !1, this.interpolationExponent = 0, this.labelPlacement = "end", this.layout = "horizontal", this.max = 100, this.min = 0, this.mirrored = !1, this.mode = "count", this.showLabels = !1, this.showBaseline = !1, this.values = [], this.arcgisTickClick = L({ cancelable: !1 });
|
|
27
27
|
}
|
|
28
28
|
static {
|
|
29
|
-
this.properties = { _activeTick: 16, _formatOptions: 16, interactive: 7, interpolationExponent: 9, labelFormatter: 0, labelPlacement: 3, layout: 3, max: 9, min: 9, mirrored: 7, mode: 1, showLabels: 5, showBaseline: 5, values: [9, { converter: {
|
|
29
|
+
this.properties = { _activeTick: 16, _formatOptions: 16, autoDestroyDisabled: 5, interactive: 7, interpolationExponent: 9, labelFormatter: 0, labelPlacement: 3, layout: 3, max: 9, min: 9, mirrored: 7, mode: 1, showLabels: 5, showBaseline: 5, values: [9, { converter: {
|
|
30
30
|
fromAttribute(t) {
|
|
31
31
|
if (t.includes(","))
|
|
32
32
|
return t.split(",").filter((e) => e.trim() !== "").map(parseFloat).filter((e) => Number.isFinite(e));
|
|
@@ -41,6 +41,9 @@ class P extends F {
|
|
|
41
41
|
this.styles = A;
|
|
42
42
|
}
|
|
43
43
|
#t;
|
|
44
|
+
async destroy() {
|
|
45
|
+
await this.manager.destroy();
|
|
46
|
+
}
|
|
44
47
|
updated() {
|
|
45
48
|
const t = this.renderRoot.querySelector(`.${l.labelsContainer}`);
|
|
46
49
|
if (t) {
|
|
@@ -82,14 +85,14 @@ class P extends F {
|
|
|
82
85
|
return h`<div class=${o(l.container)} touch-action=none>${this._renderContent()}${this._renderBaseline()}</div>`;
|
|
83
86
|
}
|
|
84
87
|
_renderContent() {
|
|
85
|
-
const { interpolationExponent: t, max: e, min: i, mode: a, values: r, layout: n, mirrored: c, showLabels: w, interactive: k } = this,
|
|
86
|
-
for (const [f, d] of
|
|
88
|
+
const { interpolationExponent: t, max: e, min: i, mode: a, values: r, layout: n, mirrored: c, showLabels: w, interactive: k } = this, g = [], v = [];
|
|
89
|
+
for (const [f, d] of P(a, i, e, t, r)) {
|
|
87
90
|
const p = { [n === "horizontal" ? c ? "right" : "left" : c ? "top" : "bottom"]: `${f}%` }, $ = {
|
|
88
91
|
[l.tick]: !0,
|
|
89
92
|
[l.tickMin]: f === 0,
|
|
90
93
|
[l.tickMax]: f === 100
|
|
91
94
|
};
|
|
92
|
-
if (
|
|
95
|
+
if (g.push(h`<div class=${o($)} .role=${k ? "button" : void 0} .ariaLabel=${k ? this._internalLabelFormatter(d) : void 0} style=${m(p)} data-value=${d ?? y} .tabIndex=${k ? 0 : -1} @blur=${this._handleBlur} @click=${this._handleClick} @focus=${this._handleFocus} @keydown=${this._handleKeyDown} @mousedown=${this._handleMouseDown}></div>`), w) {
|
|
93
96
|
const _ = {
|
|
94
97
|
[l.tickLabel]: !0,
|
|
95
98
|
[l.tickLabelFocused]: this._activeTick === String(d)
|
|
@@ -97,7 +100,7 @@ class P extends F {
|
|
|
97
100
|
v.push(h`<div class=${o(_)} style=${m(p)} data-value=${d ?? y} @click=${this._handleClick}><span class=${o(l.tickLabelText)}>${this._internalLabelFormatter(d)}</span></div>`);
|
|
98
101
|
}
|
|
99
102
|
}
|
|
100
|
-
return [h`<div class=${o(l.labelsContainer)}>${v}</div>`, h`<div class=${o(l.ticksContainer)}>${
|
|
103
|
+
return [h`<div class=${o(l.labelsContainer)}>${v}</div>`, h`<div class=${o(l.ticksContainer)}>${g}</div>`];
|
|
101
104
|
}
|
|
102
105
|
_renderBaseline() {
|
|
103
106
|
const { showBaseline: t, layout: e } = this;
|
|
@@ -107,12 +110,12 @@ class P extends F {
|
|
|
107
110
|
})}></div>` || "";
|
|
108
111
|
}
|
|
109
112
|
}
|
|
110
|
-
function*
|
|
113
|
+
function* P(s, t, e, i, a) {
|
|
111
114
|
switch (s) {
|
|
112
115
|
case "value": {
|
|
113
116
|
const r = Array.isArray(a) ? a : [a];
|
|
114
117
|
for (const n of r) {
|
|
115
|
-
const c =
|
|
118
|
+
const c = B(t, e, n, i) * 100;
|
|
116
119
|
c >= 0 && c <= 100 && (yield [c, n]);
|
|
117
120
|
}
|
|
118
121
|
break;
|
|
@@ -139,26 +142,26 @@ function* B(s, t, e, i, a) {
|
|
|
139
142
|
}
|
|
140
143
|
}
|
|
141
144
|
}
|
|
142
|
-
function
|
|
145
|
+
function b(s, t, e) {
|
|
143
146
|
return e < s ? s : e > t ? t : e;
|
|
144
147
|
}
|
|
145
148
|
function x(s, t, e) {
|
|
146
149
|
return s + (t - s) * e;
|
|
147
150
|
}
|
|
148
|
-
function
|
|
151
|
+
function B(s, t, e, i = 0) {
|
|
149
152
|
let a = (e - s) / (t - s);
|
|
150
|
-
if (a =
|
|
153
|
+
if (a = b(0, 1, a), Math.abs(i) < 1e-9)
|
|
151
154
|
return a;
|
|
152
155
|
const r = 1 + Math.expm1(i) * a;
|
|
153
|
-
return a = Math.log(r) / i,
|
|
156
|
+
return a = Math.log(r) / i, b(0, 1, a);
|
|
154
157
|
}
|
|
155
158
|
function u(s, t, e, i = 0) {
|
|
156
|
-
if (e =
|
|
159
|
+
if (e = b(0, 1, e), Math.abs(i) < 1e-9)
|
|
157
160
|
return x(s, t, e);
|
|
158
161
|
const a = Math.expm1(i * e) / Math.expm1(i);
|
|
159
162
|
return x(s, t, a);
|
|
160
163
|
}
|
|
161
|
-
M("arcgis-ticks",
|
|
164
|
+
M("arcgis-ticks", D);
|
|
162
165
|
export {
|
|
163
|
-
|
|
166
|
+
D as ArcgisTicks
|
|
164
167
|
};
|
|
@@ -3,7 +3,7 @@ import { c as p } from "../../chunks/runtime.js";
|
|
|
3
3
|
import { ref as u } from "lit/directives/ref.js";
|
|
4
4
|
import { css as g, html as o } from "lit";
|
|
5
5
|
import { keyed as f } from "lit/directives/keyed.js";
|
|
6
|
-
import { LitElement as b, createEvent as l, nothing as
|
|
6
|
+
import { LitElement as b, createEvent as l, nothing as n, safeClassMap as _ } from "@arcgis/lumina";
|
|
7
7
|
import { W as r } from "../../chunks/utils.js";
|
|
8
8
|
import { g as $ } from "../../chunks/utils2.js";
|
|
9
9
|
const v = g`:host([text-enabled][data-layout="vertical"]){.interaction-container>button{flex-direction:column;>.text-container{writing-mode:vertical-lr}}}`;
|
|
@@ -26,12 +26,12 @@ class x extends b {
|
|
|
26
26
|
return this._element;
|
|
27
27
|
}
|
|
28
28
|
measure({ layout: t, scale: e }) {
|
|
29
|
-
const a = r.actionPadding[e], i = r.action[e],
|
|
30
|
-
return [Math.max(i,
|
|
29
|
+
const a = r.actionPadding[e], i = r.action[e], s = t === "horizontal" ? this._measuredWidth : this._measuredHeight;
|
|
30
|
+
return [Math.max(i, s) + a];
|
|
31
31
|
}
|
|
32
32
|
proxiedRender(t) {
|
|
33
|
-
const { tooltipAppearance: e, scale: a } = t, i = this.tooltipText || this.labelText,
|
|
34
|
-
return o`${f(this, o`<calcite-action .active=${this.active} data-appearance=${this.appearance ??
|
|
33
|
+
const { tooltipAppearance: e, scale: a } = t, i = this.tooltipText || this.labelText, s = this._hydratedElement, c = e !== "native" && !!this.tooltipText && s, d = e === "calcite-dark" ? "calcite-mode-dark" : void 0, h = $(t);
|
|
34
|
+
return o`${f(this, o`<calcite-action .active=${this.active} data-appearance=${this.appearance ?? n} data-kind=${this.kind ?? n} data-layout=${t.layout ?? n} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .indicator=${this.indicator} .label=${i} .loading=${this.loading} @click=${(m) => this._handleActionClick(m)} .scale=${a} .text=${this.labelText} .textEnabled=${this.textEnabled} title=${(e === "native" ? i : void 0) ?? n} ${u(this.#e)}></calcite-action>`)}${c ? o`<calcite-tooltip class=${_(d)} overlay-positioning=fixed .placement=${h} .referenceElement=${s} .scale=${a}><span>${i}</span></calcite-tooltip>` : void 0}`;
|
|
35
35
|
}
|
|
36
36
|
disconnectedCallback() {
|
|
37
37
|
this.#t?.disconnect(), super.disconnectedCallback();
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { c as p } from "../../chunks/runtime.js";
|
|
3
3
|
import { html as n } from "lit";
|
|
4
4
|
import { ref as f } from "lit/directives/ref.js";
|
|
5
|
-
import { LitElement as $, createEvent as v, nothing as
|
|
5
|
+
import { LitElement as $, createEvent as v, nothing as a, safeClassMap as g } from "@arcgis/lumina";
|
|
6
6
|
import { W as s } from "../../chunks/utils.js";
|
|
7
7
|
import { E as b } from "../../chunks/element-reference-controller.js";
|
|
8
8
|
import { g as u } from "../../chunks/utils2.js";
|
|
@@ -25,9 +25,9 @@ class x extends $ {
|
|
|
25
25
|
measure({ scale: t }) {
|
|
26
26
|
return [s.action[t] + s.actionPadding[t]];
|
|
27
27
|
}
|
|
28
|
-
proxiedRender(t,
|
|
29
|
-
const l = t.tooltipAppearance,
|
|
30
|
-
return
|
|
28
|
+
proxiedRender(t, e, r) {
|
|
29
|
+
const l = t.tooltipAppearance, c = this._elementReferenceController.element, d = l !== "native" && e === "collapsed-action", m = l === "calcite-dark" ? "calcite-mode-dark" : void 0, h = u(t), i = this.tooltipText || this.labelText;
|
|
30
|
+
return e === "dropdown-item" ? n`<calcite-dropdown-item .disabled=${this.disabled} icon-start=${this.icon ?? a} .iconFlipRtl=${this.iconFlipRtl ? "both" : void 0} .label=${i} @click=${(o) => this._handleDropdownItemClick(o)} .selected=${this.active || r} title=${this.tooltipText ?? a}>${this.labelText}</calcite-dropdown-item>` : n`<calcite-action .active=${this.active} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .label=${i} .loading=${this.loading} @click=${(o) => this._handleActionClick(o)} .scale=${t.scale} .text=${this.labelText} .textEnabled=${e === "expanded-action"} title=${(l === "native" ? i : void 0) ?? a} ${f(this._elementReferenceController.ref)}></calcite-action>${d && c ? n`<calcite-tooltip class=${g(m)} close-on-click overlay-positioning=fixed .placement=${h} .referenceElement=${c}><span>${i}</span></calcite-tooltip>` : void 0}`;
|
|
31
31
|
}
|
|
32
32
|
_handleActionClick(t) {
|
|
33
33
|
this.isConnected && (this.lastActivated = /* @__PURE__ */ new Date(), this.arcgisItemSelected?.emit({ element: t.currentTarget }));
|
|
@@ -7,11 +7,12 @@ import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
|
7
7
|
* The Value Picker component allows users to step or play through an iterable set of data. The component alone acts as a shell, consisting
|
|
8
8
|
* of a play/pause button, a next button, a previous button, and a slot for adding a component to Value Picker. Value Picker is not associated with a
|
|
9
9
|
* [View](https://developers.arcgis.com/javascript/latest/references/core/views/View/) nor does it require that the dataset adheres to a specific structure
|
|
10
|
-
* for it to function.
|
|
10
|
+
* for it to function.
|
|
11
|
+
*
|
|
12
|
+
* The [arcgis-value-picker-label](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-label/), [arcgis-value-picker-slider](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-slider/),
|
|
11
13
|
* [arcgis-value-picker-combobox](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-combobox/), and [arcgis-value-picker-collection](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker-collection/) components provide the user with a few different options
|
|
12
14
|
* for placing their data into a Value Picker with minimal configuration. Value Picker handles the different shapes of these components automatically by asserting
|
|
13
|
-
* that all slotted components will extend the
|
|
14
|
-
* [ArcgisValuePickerSubcomponent](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-value-picker/types/#ArcgisValuePickerSubcomponent)
|
|
15
|
+
* that all slotted components will extend the [ArcgisValuePickerSubcomponent](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker/types#ArcgisValuePickerSubcomponent)
|
|
15
16
|
* interface, which allows Value picker to send and receive generic sets of instructions that are interpreted by the slotted component.
|
|
16
17
|
*
|
|
17
18
|
* ### Configuring Value Picker
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import type { Icon as Icon } from "@esri/calcite-components/components/calcite-icon";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* @since
|
|
5
|
-
* 5.2
|
|
6
|
-
*
|
|
7
4
|
* The minimum API required for components being slotted into [arcgis-value-picker](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker/). Value Picker will automatically
|
|
8
5
|
* create an internal reference to the slotted component, so the properties on this interface can be directly referenced without requiring
|
|
9
6
|
* the the Value Picker component to be aware of the slotted component's unique API. For example, if the user presses play and eventually Value Picker
|
|
10
7
|
* determines that `slottedComponent.canNext` is false but [arcgis-value-picker.loop](https://developers.arcgis.com/javascript/latest/references/common-components/components/arcgis-value-picker/#loop) is true, Value Picker will call `slottedComponent.reset()`
|
|
11
8
|
* to reset the slotted component's current value to the first index of its dataset. This will allow playback to continue looping seamlessly.
|
|
9
|
+
*
|
|
10
|
+
* @since 5.2
|
|
12
11
|
*/
|
|
13
12
|
export interface ArcgisValuePickerSubcomponent extends HTMLElement {
|
|
14
13
|
/**
|
|
@@ -47,7 +46,6 @@ export interface AnimateEvent {
|
|
|
47
46
|
first: boolean;
|
|
48
47
|
}
|
|
49
48
|
|
|
50
|
-
/** Object used to define the label items. */
|
|
51
49
|
export interface LabelItem {
|
|
52
50
|
/** The value of the item. */
|
|
53
51
|
value: string;
|