@sandlada/mdc
Version:
@sandlada/mdc is an open source component library that follows the Material Design 3 design specifications.
2 lines (1 loc) • 1.29 kB
JavaScript
import{_ as t}from"../../tslib.es6-CmLYFWVC.js";import{i as e}from"../../lit-element-Ho-VPzO1.js";import{n as r}from"../../property-Ck1wIidx.js";import{mixinConstraintValidation as o}from"../../utils/behaviors/constraint-validation.js";import{mixinElementInternals as i}from"../../utils/behaviors/element-internals.js";import{mixinFormAssociated as s}from"../../utils/form/form-associated.js";class a extends(o(s(i(e)))){constructor(){super(...arguments),this.min=0,this.max=100,this.step=1,this.ticks=!1,this.labeled=!1,this.range=!1}get nameStart(){return this.getAttribute("name-start")??this.name}set nameStart(t){this.setAttribute("name-start",t)}get nameEnd(){return this.getAttribute("name-end")??this.nameStart}set nameEnd(t){this.setAttribute("name-end",t)}}t([r({type:Number})],a.prototype,"min",void 0),t([r({type:Number})],a.prototype,"max",void 0),t([r({type:Number})],a.prototype,"value",void 0),t([r({type:Number,attribute:"value-start"})],a.prototype,"valueStart",void 0),t([r({type:Number,attribute:"value-end"})],a.prototype,"valueEnd",void 0),t([r({type:Number})],a.prototype,"step",void 0),t([r({type:Boolean})],a.prototype,"ticks",void 0),t([r({type:Boolean})],a.prototype,"labeled",void 0),t([r({type:Boolean})],a.prototype,"range",void 0);export{a as BaseSlider};