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.8 KiB
7 lines
1.8 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("require exports ../../chunks/tslib.es6 ../../core/unitUtils ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass ../Widget ../../chunks/componentsUtils ./widgetUtils ./decorators/messageBundle ./jsxFactory".split(" "),function(k,b,d,l,f,u,v,w,m,n,p,x,q,g){b.UnitSelect=class extends n{constructor(a,c){super(a,c);this._onSelectChange=h=>{this.onChange(h.target.value)}}loadDependencies(){return p.loadCalciteComponents({label:()=> |
|
new Promise((a,c)=>k(["../../chunks/calcite-label"],a,c)),option:()=>new Promise((a,c)=>k(["../../chunks/calcite-option"],a,c)),select:()=>new Promise((a,c)=>k(["../../chunks/calcite-select"],a,c))})}render(){const {messages:a,options:c,selectLabel:h,value:r,_onSelectChange:t}=this;return g.tsx("div",{class:"esri-unit-select",key:"units"},g.tsx("calcite-label",{class:"esri-unit-select__label"},h,g.tsx("calcite-select",{class:"esri-unit-select__select",label:h,onCalciteSelectChange:t},c.map(e=>g.tsx("calcite-option", |
|
{key:e,selected:e===r,value:e},l.isMeasurementSystem(e)?a.systems[e]:a.units[e]?.pluralCapitalized)))))}};d.__decorate([f.property()],b.UnitSelect.prototype,"options",void 0);d.__decorate([f.property()],b.UnitSelect.prototype,"onChange",void 0);d.__decorate([f.property()],b.UnitSelect.prototype,"selectLabel",void 0);d.__decorate([f.property()],b.UnitSelect.prototype,"value",void 0);d.__decorate([f.property(),q.messageBundle("esri/core/t9n/Units")],b.UnitSelect.prototype,"messages",void 0);b.UnitSelect= |
|
d.__decorate([m.subclass("esri.widgets.support.UnitSelect")],b.UnitSelect);Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})}); |