You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
1.9 KiB
7 lines
1.9 KiB
// All material copyright Esri, All Rights Reserved, unless otherwise specified. |
|
// See https://js.arcgis.com/4.30/esri/copyright.txt for details. |
|
//>>built |
|
define("../../chunks/tslib.es6 ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../support/widgetUtils ../support/jsxFactory ./ValuePickerBaseComponent".split(" "),function(f,g,c,p,q,l,r,k,m){c=class extends m{constructor(a,d){super(a,d);this.items=null;this.type="label"}get canNext(){return this.items&&this.viewModel?this.items.findIndex(({value:a})=>a===this.viewModel.values?.[0])!==this.items.length- |
|
1:!1}get canPlay(){return null!=this.viewModel&&!!this.items?.length}get canPrevious(){const {items:a,viewModel:d}=this;return a&&d?0!==a.findIndex(({value:b})=>b===d.values?.[0]):!1}render(){const {viewModel:a}=this;if(null==a)return k.tsx("div",null);const d=this.items?.find(({value:b})=>b===a.values?.[0]);return k.tsx("div",{class:"esri-value-picker__label"},k.tsx("div",{class:"esri-value-picker__label-border"},k.tsx("div",{class:"esri-value-picker__label-text"},d?.label)))}animate(a){this._step(1, |
|
a)}next(){this._step(1)}previous(){this._step(-1)}_step(a,d=!1){const {viewModel:b,items:e}=this;if(e?.length&&b)if(b.values){var h=e.findIndex(({value:n})=>n===b.values[0]);-1===h?b.values=[e[0].value]:(h+=a,0>h||h>=e.length?b.loop||d?b.values=[e[1===a?0:e.length-1].value]:"playing"===b.state&&b.pause():b.values=[e[h].value])}else b.values=[e[0].value]}};f.__decorate([g.property()],c.prototype,"canNext",null);f.__decorate([g.property()],c.prototype,"canPlay",null);f.__decorate([g.property()],c.prototype, |
|
"canPrevious",null);f.__decorate([g.property()],c.prototype,"items",void 0);f.__decorate([g.property()],c.prototype,"type",void 0);return c=f.__decorate([l.subclass("esri.widgets.ValuePicker.ValuePickerLabel")],c)}); |