12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import{_ as e}from"../../chunks/tslib.es6.js";import{property as s}from"../../core/accessorSupport/decorators/property.js";import"../../core/arrayUtils.js";import"../../core/accessorSupport/ensureType.js";import{subclass as t}from"../../core/accessorSupport/decorators/subclass.js";import o from"../Widget.js";import"../support/widgetUtils.js";import{tsx as r}from"../support/jsxFactory.js";import{LABELED_SLIDER_CSS as i}from"./css.js";let a=class extends o{constructor(e){super(e),this._onChange=e=>{const s=e.target.value;this.onChange(s)}}render(){const{label:e,disabled:s}=this;return r("div",{class:i.base},r("calcite-label",{scale:"s",disabled:s},e,r("calcite-slider",{"aria-label":e,disabled:this.disabled,max:1,min:0,step:.01,value:this.value,onCalciteSliderInput:this._onChange,onCalciteSliderChange:this._onChange})))}loadDependencies(){return Promise.all([import("@esri/calcite-components/dist/components/calcite-label.js"),import("@esri/calcite-components/dist/components/calcite-slider.js")])}};e([s()],a.prototype,"value",void 0),e([s()],a.prototype,"onChange",void 0),e([s()],a.prototype,"disabled",void 0),a=e([t("esri.widgets.Weather.LabeledSlider")],a);export{a as LabeledSlider};
|