@arcgis/common-components 5.2.0-next.139 → 5.2.0-next.140
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/5XRYXPOX.js +2 -0
- package/dist/cdn/M3SFEFPX.js +2 -0
- package/dist/cdn/ZGYD3GAS.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.d.ts +8 -1
- package/dist/components/arcgis-value-picker/customElement.js +23 -19
- package/dist/components/arcgis-value-picker/index.js +1 -1
- package/dist/components/arcgis-value-picker-label/customElement.d.ts +6 -0
- package/dist/components/arcgis-value-picker-label/customElement.js +3 -3
- package/dist/components/arcgis-value-picker-slider/customElement.js +1 -1
- 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 +2 -2
- package/dist/types/lumina.d.ts +2 -2
- package/dist/types/preact.d.ts +2 -2
- package/dist/types/react.d.ts +2 -2
- package/dist/types/stencil.d.ts +2 -2
- package/package.json +5 -5
- package/dist/cdn/PJCRMKAM.js +0 -2
- package/dist/cdn/WQW7S2RI.js +0 -2
- package/dist/cdn/ZZ4YJXPK.js +0 -2
package/dist/loader.js
CHANGED
|
@@ -28,10 +28,10 @@ const s = a(e, {
|
|
|
28
28
|
"arcgis-toolbar-split-button": [() => import("./components/arcgis-toolbar-split-button/customElement.js"), "menuAppearance,overflowActionLabel,priority;;measure,proxiedRender"],
|
|
29
29
|
"arcgis-toolbar-stack": [() => import("./components/arcgis-toolbar-stack/customElement.js"), "layout,relativePosition,scale,toolbarKind,tooltipAppearance"],
|
|
30
30
|
"arcgis-unique-values-list": [() => import("./components/arcgis-unique-values-list/customElement.js"), "_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"],
|
|
31
|
-
"arcgis-value-picker": [() => import("./components/arcgis-value-picker/customElement.js"), "autoDestroyDisabled,disabled,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],
|
|
31
|
+
"arcgis-value-picker": [() => import("./components/arcgis-value-picker/customElement.js"), "autoDestroyDisabled,disabled,floating,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],
|
|
32
32
|
"arcgis-value-picker-collection": [() => import("./components/arcgis-value-picker-collection/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],
|
|
33
33
|
"arcgis-value-picker-combobox": [() => import("./components/arcgis-value-picker-combobox/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:,messages:;destroy;reset,step"],
|
|
34
|
-
"arcgis-value-picker-label": [() => import("./components/arcgis-value-picker-label/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],
|
|
34
|
+
"arcgis-value-picker-label": [() => import("./components/arcgis-value-picker-label/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:;destroy;reset,step"],
|
|
35
35
|
"arcgis-value-picker-slider": [() => import("./components/arcgis-value-picker-slider/customElement.js"), "autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue,disabled,labelFormatter:,labels:,layout,majorTicks:,max,min,minorTicks:,mirrored,steps:;destroy;reset,step"]
|
|
36
36
|
});
|
|
37
37
|
export {
|
package/dist/types/lumina.d.ts
CHANGED
|
@@ -162,7 +162,7 @@ interface LuminaArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesLi
|
|
|
162
162
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
163
163
|
}
|
|
164
164
|
|
|
165
|
-
interface LuminaArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, h.JSX.HTMLAttributes<ArcgisValuePicker> {
|
|
165
|
+
interface LuminaArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, h.JSX.HTMLAttributes<ArcgisValuePicker> {
|
|
166
166
|
onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
167
167
|
onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
168
168
|
onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -180,7 +180,7 @@ interface LuminaArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePicker
|
|
|
180
180
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
interface LuminaArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, h.JSX.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
183
|
+
interface LuminaArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, h.JSX.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
184
184
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
185
185
|
}
|
|
186
186
|
|
package/dist/types/preact.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ interface PreactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesLi
|
|
|
163
163
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
interface PreactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLAttributes<ArcgisValuePicker> {
|
|
166
|
+
interface PreactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLAttributes<ArcgisValuePicker> {
|
|
167
167
|
onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
168
168
|
onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
169
169
|
onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -181,7 +181,7 @@ interface PreactArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePicker
|
|
|
181
181
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
interface PreactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, HTMLAttributes<ArcgisValuePickerLabel> {
|
|
184
|
+
interface PreactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, HTMLAttributes<ArcgisValuePickerLabel> {
|
|
185
185
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
186
186
|
}
|
|
187
187
|
|
package/dist/types/react.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ interface ReactArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesLis
|
|
|
163
163
|
onarcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
interface ReactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLProps<ArcgisValuePicker> {
|
|
166
|
+
interface ReactArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, HTMLProps<ArcgisValuePicker> {
|
|
167
167
|
onarcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
168
168
|
onarcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
169
169
|
onarcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -181,7 +181,7 @@ interface ReactArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePickerC
|
|
|
181
181
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
interface ReactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, HTMLProps<ArcgisValuePickerLabel> {
|
|
184
|
+
interface ReactArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, HTMLProps<ArcgisValuePickerLabel> {
|
|
185
185
|
onarcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
186
186
|
}
|
|
187
187
|
|
package/dist/types/stencil.d.ts
CHANGED
|
@@ -163,7 +163,7 @@ interface StencilArcgisUniqueValuesList extends Partial<Pick<ArcgisUniqueValuesL
|
|
|
163
163
|
onArcgisSortByChange?: EventHandler<ArcgisUniqueValuesList["arcgisSortByChange"]>;
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
interface StencilArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, StencilJsx.HTMLAttributes<ArcgisValuePicker> {
|
|
166
|
+
interface StencilArcgisValuePicker extends Partial<Pick<ArcgisValuePicker, "autoDestroyDisabled" | "disabled" | "floating" | "hideNextButton" | "hidePlayButton" | "hidePreviousButton" | "icon" | "label" | "layout" | "loop" | "playRate">>, StencilJsx.HTMLAttributes<ArcgisValuePicker> {
|
|
167
167
|
onArcgisAnimate?: EventHandler<ArcgisValuePicker["arcgisAnimate"]>;
|
|
168
168
|
onArcgisNext?: EventHandler<ArcgisValuePicker["arcgisNext"]>;
|
|
169
169
|
onArcgisPause?: EventHandler<ArcgisValuePicker["arcgisPause"]>;
|
|
@@ -181,7 +181,7 @@ interface StencilArcgisValuePickerCombobox extends Partial<Pick<ArcgisValuePicke
|
|
|
181
181
|
onArcgisPropertyChange?: EventHandler<ArcgisValuePickerCombobox["arcgisPropertyChange"]>;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
interface StencilArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
184
|
+
interface StencilArcgisValuePickerLabel extends Partial<Pick<ArcgisValuePickerLabel, "autoDestroyDisabled" | "canNext" | "canPlay" | "canPrevious" | "currentValue" | "disabled" | "items">>, StencilJsx.HTMLAttributes<ArcgisValuePickerLabel> {
|
|
185
185
|
onArcgisPropertyChange?: EventHandler<ArcgisValuePickerLabel["arcgisPropertyChange"]>;
|
|
186
186
|
}
|
|
187
187
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcgis/common-components",
|
|
3
|
-
"version": "5.2.0-next.
|
|
3
|
+
"version": "5.2.0-next.140",
|
|
4
4
|
"description": "ArcGIS Maps SDK for JavaScript common components",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"2D",
|
|
@@ -45,16 +45,16 @@
|
|
|
45
45
|
],
|
|
46
46
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@arcgis/lumina": "5.2.0-next.
|
|
49
|
-
"@arcgis/lumina-toolkit": "5.2.0-next.
|
|
50
|
-
"@arcgis/toolkit": "5.2.0-next.
|
|
48
|
+
"@arcgis/lumina": "5.2.0-next.140",
|
|
49
|
+
"@arcgis/lumina-toolkit": "5.2.0-next.140",
|
|
50
|
+
"@arcgis/toolkit": "5.2.0-next.140",
|
|
51
51
|
"@esri/arcgis-html-sanitizer": "~4.2.0-next.2",
|
|
52
52
|
"@lit/task": "^1.0.3",
|
|
53
53
|
"lit": "^3.3.0",
|
|
54
54
|
"tslib": "^2.8.1"
|
|
55
55
|
},
|
|
56
56
|
"peerDependencies": {
|
|
57
|
-
"@arcgis/core": "5.2.0-next.
|
|
57
|
+
"@arcgis/core": "5.2.0-next.140",
|
|
58
58
|
"@esri/calcite-components": "^5.2.0-next.89"
|
|
59
59
|
},
|
|
60
60
|
"css.customData": [
|
package/dist/cdn/PJCRMKAM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{e as n}from"./LLATF73T.js";import"./XX2ZCFWI.js";import{L as c,R as l,h as r,j as s}from"./BCN6LPOG.js";var h=r`:host{display:flex;flex:auto;padding-inline:var(--calcite-space-sm)}arcgis-slider{flex:auto}arcgis-ticks{--arcgis-ticks-font-size: var(--calcite-font-size--3);--arcgis-ticks-gap: var(--calcite-space-base)}.content-end-stack{display:flex;flex-direction:column;flex:1}.ticks-stack{height:var(--calcite-space-sm);position:relative}.ticks-stack arcgis-ticks{inset:var(--calcite-space-none);position:absolute}.label-ticks{--arcgis-ticks-tick-length: var(--calcite-space-2xs);--arcgis-ticks-tick-color: transparent}.minor-ticks{--arcgis-ticks-tick-length: var(--calcite-space-2xs)}.major-ticks{--arcgis-ticks-tick-length: var(--calcite-space-sm)}:host([layout="vertical"]){padding-inline:var(--calcite-space-none);width:var(--calcite-size-xl);arcgis-ticks{--arcgis-ticks-gap: var(--calcite-space-sm)}.content-end-stack{position:relative}.ticks-stack{height:100%}.label-ticks{inset:var(--calcite-space-none);position:absolute}}`,a=class extends c{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.disabled=!1,this.layout="horizontal",this.mirrored=!1,this.arcgisPropertyChange=n()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,canNext:5,canPlay:5,canPrevious:5,currentValue:9,disabled:5,labelFormatter:0,labels:0,layout:3,max:9,min:9,mirrored:5,steps:0,majorTicks:0,minorTicks:0}}static{this.styles=h}get _ascending(){return this.layout==="horizontal"&&!this.mirrored||this.layout==="vertical"&&this.mirrored}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this._ascending?this.steps?.at(0):this.steps?.at(-1)}step(t){if(!this.steps||this.currentValue===void 0)return;let e=t==="next"===this._ascending?1:-1,i=this.steps.indexOf(this.currentValue)+e;i>=this.steps.length||i<0||(this.currentValue=this.steps[i],this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(t){t.has("steps")&&this.steps?.length&&(this.min??=this.steps[0],this.max??=this.steps.at(-1)),(t.has("currentValue")||t.has("max"))&&this.max!==void 0&&(this.currentValue??=this.max),this.el.hidden=this.min===void 0||this.max===void 0||this.currentValue===void 0,this._checkState()}_checkState(){if(!this.steps?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let t=this.steps.findIndex(i=>i===this.currentValue),e=this.steps.length-1;this.canNext=this._ascending?t<e:t>0,this.canPrevious=this._ascending?t>0:t<e}_handleSliderChange(t){this.currentValue=t.currentTarget.values[0],this._checkState()}_handleSliderInput(t){this.currentValue=t.currentTarget.values[0],this._checkState()}render(){return this.currentValue===void 0?null:s`<arcgis-slider .disabled=${this.disabled} .layout=${this.layout} .min=${this.min} .max=${this.max} .steps=${this.steps} .mirrored=${this.mirrored} .values=${[this.currentValue]} @arcgisInput=${t=>this._handleSliderInput(t)} @arcgisChange=${t=>this._handleSliderChange(t)}>${(this.majorTicks?.length||this.minorTicks?.length||this.labels?.length)&&s`<div slot=content-end class="content-end-stack">${(this.majorTicks?.length||this.minorTicks?.length)&&s`<div class="ticks-stack">${this.majorTicks?.length&&s`<arcgis-ticks .layout=${this.layout} class="major-ticks" .min=${this.min} .max=${this.max} .mirrored=${this.mirrored} .values=${this.majorTicks} mode=value></arcgis-ticks>`||""}${this.minorTicks?.length&&s`<arcgis-ticks .layout=${this.layout} class="minor-ticks" .min=${this.min} .max=${this.max} .mirrored=${this.mirrored} .values=${this.minorTicks} mode=value></arcgis-ticks>`||""}</div>`||""}${this.labels?.length&&s`<arcgis-ticks .layout=${this.layout} class="label-ticks" .min=${this.min} .max=${this.max} .mirrored=${this.mirrored} .values=${this.labels} mode=value show-labels label-placement=end .labelFormatter=${this.labelFormatter}></arcgis-ticks>`||""}</div>`||""}</arcgis-slider>`}};l("arcgis-value-picker-slider",a);export{a as ArcgisValuePickerSlider};
|
package/dist/cdn/WQW7S2RI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{e as n}from"./LLATF73T.js";import"./XX2ZCFWI.js";import{L as r,R as c,h as s,j as a}from"./BCN6LPOG.js";var h=s`:host{display:flex;flex:auto;min-width:300px;padding:var(--calcite-space-sm)}.container{align-items:center;border:solid 1px var(--calcite-color-border-3);display:flex;flex:auto;padding-inline:var(--calcite-space-sm)}.text{color:var(--calcite-color-text-1);flex:auto;font-family:inherit;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-normal);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--calcite-space-none)}`,i=class extends r{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.arcgisPropertyChange=n()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,items:0,currentValue:0,canNext:5,canPlay:5,canPrevious:5}}static{this.styles=h}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this.items?.[0]}step(t){if(!this.items||!this.currentValue)return;let e=this.items.findIndex(({value:l})=>l===this.currentValue?.value)+(t==="next"?1:-1);e>=this.items.length||e<0||(this.currentValue=this.items[e],this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(t){(t.has("currentValue")||t.has("items"))&&this.items?.length&&!this.currentValue&&(this.currentValue=this.items[0]),this.el.hidden=!this.items?.length,this._checkState()}_checkState(){if(!this.items?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let t=this.items.findIndex(({value:e})=>e===this.currentValue?.value);this.canNext=t<this.items.length-1,this.canPrevious=t>0}render(){return a`<div class="container"><div class="text">${this.currentValue?.label}</div></div>`}};c("arcgis-value-picker-label",i);export{i as ArcgisValuePickerLabel};
|
package/dist/cdn/ZZ4YJXPK.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as m}from"./TO3YFXVJ.js";import{e as d}from"./LLATF73T.js";import{b as r}from"./XX2ZCFWI.js";import{L as o,M as h,O as a,R as c,h as n,j as s,t as i}from"./BCN6LPOG.js";var u=n`:host{display:inline-flex;max-inline-size:100%}:host([layout="horizontal"]) slot{min-inline-size:300px;min-block-size:48px}:host([layout="vertical"]) slot{min-inline-size:300px;min-block-size:144px}slot{display:flex}slot.empty{display:none}.container{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.root{display:flex;flex-direction:row;align-items:stretch}calcite-action{width:var(--calcite-font-line-height-fixed-4xl);height:var(--calcite-font-line-height-fixed-4xl)}calcite-action-bar{--calcite-action-bar-items-space: var(--calcite-space-none);--calcite-spacing-sm: var(--calcite-space-none);background-color:var(--calcite-color-foreground-1)}.separator{border-inline-end:solid 1px var(--calcite-color-border-3);width:1px}`,l=class extends o{constructor(){super(),this.messages=m({blocking:!0}),this._isPlaying=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.hideNextButton=!1,this.hidePlayButton=!1,this.hidePreviousButton=!1,this.icon="list-rectangle",this.label="",this.layout="horizontal",this.loop=!1,this.playRate=1e3,this.arcgisAnimate=i(),this.arcgisNext=i(),this.arcgisPause=i(),this.arcgisPlay=i(),this.arcgisPrevious=i(),this.arcgisPropertyChange=d()("layout","loop","playRate","state"),this.arcgisSlottedElementChange=i(),this.listen("arcgisPropertyChange",()=>this.requestUpdate())}static{this.properties={_isPlaying:16,_slottedElement:16,autoDestroyDisabled:5,disabled:5,hideNextButton:5,hidePlayButton:5,hidePreviousButton:5,icon:1,label:1,layout:3,loop:5,playRate:9,state:32}}static{this.styles=u}get state(){return this._isPlaying?"playing":"ready"}async destroy(){await this.manager.destroy()}next(){this.arcgisNext.emit(),this._slottedElement?.canNext&&this._slottedElement.step("next")}pause(){this._isPlaying=!1,this.arcgisPause.emit()}play(){this._isPlaying||(this._isPlaying=!0,this.arcgisPlay.emit(),this._startPlayRate(!0))}previous(){this.arcgisPrevious.emit(),this._slottedElement?.canPrevious&&this._slottedElement.step("previous")}willUpdate(t){t.has("layout")&&this._isElementWithLayout(this._slottedElement)&&(this._slottedElement.layout=this.layout),t.has("disabled")&&this._isElementWithDisabled(this._slottedElement)&&(this._slottedElement.disabled=this.disabled)}disconnectedCallback(){super.disconnectedCallback(),this._isPlaying&&this.pause()}_handleSlotChange(t){let[e]=r(t);this._slottedElement=e,this.arcgisSlottedElementChange.emit({slottedElement:e}),!e&&this._isPlaying&&this.pause(),this._isElementWithLayout(e)&&(e.layout=this.layout),this._isElementWithDisabled(e)&&(e.disabled=this.disabled),this._isElementWithComponentOnReady(e)&&e.componentOnReady().then(()=>{this._slottedElement===e&&this.requestUpdate()})}_isElementWithComponentOnReady(t){return!!t&&"componentOnReady"in t}_isElementWithLayout(t){return!!t&&"layout"in t}_isElementWithDisabled(t){return!!t&&"disabled"in t}_startPlayRate(t){setTimeout(()=>{if(this._isPlaying){if(!this._slottedElement?.canNext&&this.loop)this._slottedElement?.reset();else if(this._slottedElement?.step("next"),this._slottedElement&&!this._slottedElement?.canNext&&!this.loop){this.pause();return}this.arcgisAnimate.emit({first:t}),this._startPlayRate(!1)}},this.playRate)}render(){let t=!!this._slottedElement&&!this._slottedElement.hidden,e=this.state==="playing";return s`<div class="container"><div class="root"><calcite-action-bar expand-disabled .layout=${this.layout}>${!this.hidePlayButton&&s`<calcite-action alignment=center .disabled=${this.disabled||this._slottedElement&&!this._slottedElement.canPlay} .icon=${e?"pause":"play"} .text=${e?this.messages.pause:this.messages.play} title=${(e?this.messages.pause:this.messages.play)??a} @click=${()=>{if(this._slottedElement&&!this._slottedElement.canNext&&!this.loop){this._slottedElement.reset(),this.play();return}e?this.pause():this.play()}}></calcite-action>`||""}${!this.hidePreviousButton&&s`<calcite-action alignment=center .disabled=${this.disabled||e||this._slottedElement&&!this._slottedElement.canPrevious} .icon=${this.layout==="horizontal"?"chevron-left":"chevron-up"} .text=${this.messages.previous} title=${this.messages.previous??a} @click=${this.previous}></calcite-action>`||""}${!this.hideNextButton&&s`<calcite-action alignment=center .disabled=${this.disabled||e||this._slottedElement&&!this._slottedElement.canNext} .icon=${this.layout==="horizontal"?"chevron-right":"chevron-down"} .text=${this.messages.next} title=${this.messages.next??a} @click=${this.next}></calcite-action>`||""}</calcite-action-bar>${t&&s`<div class="separator"></div>`||""}<slot @slotchange=${({currentTarget:p})=>{this._handleSlotChange(p)}} class=${h(t?"component-slot":"empty")}></slot></div></div>`}};c("arcgis-value-picker",l);export{l as ArcgisValuePicker};
|