@m3e/slider 1.0.0-rc.1

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.
@@ -0,0 +1,395 @@
1
+ /**
2
+ * @license MIT
3
+ * Copyright (c) 2025 matraic
4
+ * See LICENSE file in the project root for full license text.
5
+ */
6
+ import{LitElement as t,html as e,unsafeCSS as i,css as s}from"lit";import{Dirty as r,Touched as a,FormAssociated as o,Focusable as n,Disabled as h,AttachInternals as l,Role as c,formValue as d,DesignToken as p,ResizeController as u,safeStyleMap as m,prefersReducedMotion as v}from"@m3e/core";function f(t,e,i,s){var r,a=arguments.length,o=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(o=(a<3?r(o):a>3?r(e,i,o):r(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o}function b(t,e,i,s){if("a"===i&&!s)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!s:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===i?s:"a"===i?s.call(t):s?s.value:e.get(t)}function g(t,e,i,s,r){if("m"===s)throw new TypeError("Private method is not writable");if("a"===s&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!r:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===s?r.call(t,i):r?r.value=i:e.set(t,i),i}"function"==typeof SuppressedError&&SuppressedError;
7
+ /**
8
+ * @license
9
+ * Copyright 2017 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */
12
+ const $=t=>(e,i)=>{void 0!==i?i.addInitializer(()=>{customElements.define(t,e)}):customElements.define(t,e)},_=globalThis,y=_.ShadowRoot&&(void 0===_.ShadyCSS||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,k=Symbol(),w=new WeakMap;
13
+ /**
14
+ * @license
15
+ * Copyright 2019 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */let A=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==k)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(y&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=w.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&w.set(e,t))}return t}toString(){return this.cssText}};const x=y?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new A("string"==typeof t?t:t+"",void 0,k))(e)})(t):t,{is:E,defineProperty:S,getOwnPropertyDescriptor:T,getOwnPropertyNames:P,getOwnPropertySymbols:C,getPrototypeOf:M}=Object,z=globalThis,U=z.trustedTypes,O=U?U.emptyScript:"",H=z.reactiveElementPolyfillSupport,N=(t,e)=>t,R={toAttribute(t,e){switch(e){case Boolean:t=t?O:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},j=(t,e)=>!E(t,e),L={attribute:!0,type:String,converter:R,reflect:!1,useDefault:!1,hasChanged:j};
18
+ /**
19
+ * @license
20
+ * Copyright 2017 Google LLC
21
+ * SPDX-License-Identifier: BSD-3-Clause
22
+ */Symbol.metadata??=Symbol("metadata"),z.litPropertyMetadata??=new WeakMap;class D extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=L){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&S(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:r}=T(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const a=s?.call(this);r?.call(this,e),this.requestUpdate(t,a,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??L}static _$Ei(){if(this.hasOwnProperty(N("elementProperties")))return;const t=M(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(N("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(N("properties"))){const t=this.properties,e=[...P(t),...C(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(x(t))}else void 0!==t&&e.push(x(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(y)t.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const i of e){const e=document.createElement("style"),s=_.litNonce;void 0!==s&&e.setAttribute("nonce",s),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const r=(void 0!==i.converter?.toAttribute?i.converter:R).toAttribute(e,i.type);this._$Em=t,null==r?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:R;this._$Em=s;const a=r.fromAttribute(e,t.type);this[s]=a??this._$Ej?.get(s)??a,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const s=this.constructor,r=this[t];if(i??=s.getPropertyOptions(t),!((i.hasChanged??j)(r,e)||i.useDefault&&i.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},a){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}}D.elementStyles=[],D.shadowRootOptions={mode:"open"},D[N("elementProperties")]=new Map,D[N("finalized")]=new Map,H?.({ReactiveElement:D}),(z.reactiveElementVersions??=[]).push("2.1.1");
23
+ /**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */
28
+ const W={attribute:!0,type:String,converter:R,reflect:!1,hasChanged:j},I=(t=W,e,i)=>{const{kind:s,metadata:r}=i;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),a.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const r=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,r,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=i;return function(i){const r=this[s];e.call(this,i),this.requestUpdate(s,r,t)}}throw Error("Unsupported decorator location: "+s)};function B(t){return(e,i)=>"object"==typeof i?I(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}
29
+ /**
30
+ * @license
31
+ * Copyright 2017 Google LLC
32
+ * SPDX-License-Identifier: BSD-3-Clause
33
+ */
34
+ /**
35
+ * @license
36
+ * Copyright 2017 Google LLC
37
+ * SPDX-License-Identifier: BSD-3-Clause
38
+ */
39
+ function q(t,e){return(e,i,s)=>((t,e,i)=>(i.configurable=!0,i.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,i),i))(e,i,{get(){return(e=>e.renderRoot?.querySelector(t)??null)(this)}})}
40
+ /**
41
+ * @license
42
+ * Copyright 2017 Google LLC
43
+ * SPDX-License-Identifier: BSD-3-Clause
44
+ */const V=globalThis,G=V.trustedTypes,J=G?G.createPolicy("lit-html",{createHTML:t=>t}):void 0,K="$lit$",Z=`lit$${Math.random().toFixed(9).slice(2)}$`,F="?"+Z,X=`<${F}>`,Q=document,Y=()=>Q.createComment(""),tt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,et=Array.isArray,it="[ \t\n\f\r]",st=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,rt=/-->/g,at=/>/g,ot=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),nt=/'/g,ht=/"/g,lt=/^(?:script|style|textarea|title)$/i,ct=Symbol.for("lit-noChange"),dt=Symbol.for("lit-nothing"),pt=new WeakMap,ut=Q.createTreeWalker(Q,129);function mt(t,e){if(!et(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==J?J.createHTML(e):e}const vt=(t,e)=>{const i=t.length-1,s=[];let r,a=2===e?"<svg>":3===e?"<math>":"",o=st;for(let e=0;e<i;e++){const i=t[e];let n,h,l=-1,c=0;for(;c<i.length&&(o.lastIndex=c,h=o.exec(i),null!==h);)c=o.lastIndex,o===st?"!--"===h[1]?o=rt:void 0!==h[1]?o=at:void 0!==h[2]?(lt.test(h[2])&&(r=RegExp("</"+h[2],"g")),o=ot):void 0!==h[3]&&(o=ot):o===ot?">"===h[0]?(o=r??st,l=-1):void 0===h[1]?l=-2:(l=o.lastIndex-h[2].length,n=h[1],o=void 0===h[3]?ot:'"'===h[3]?ht:nt):o===ht||o===nt?o=ot:o===rt||o===at?o=st:(o=ot,r=void 0);const d=o===ot&&t[e+1].startsWith("/>")?" ":"";a+=o===st?i+X:l>=0?(s.push(n),i.slice(0,l)+K+i.slice(l)+Z+d):i+Z+(-2===l?e:d)}return[mt(t,a+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class ft{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,a=0;const o=t.length-1,n=this.parts,[h,l]=vt(t,e);if(this.el=ft.createElement(h,i),ut.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=ut.nextNode())&&n.length<o;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(K)){const e=l[a++],i=s.getAttribute(t).split(Z),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:r,name:o[2],strings:i,ctor:"."===o[1]?yt:"?"===o[1]?kt:"@"===o[1]?wt:_t}),s.removeAttribute(t)}else t.startsWith(Z)&&(n.push({type:6,index:r}),s.removeAttribute(t));if(lt.test(s.tagName)){const t=s.textContent.split(Z),e=t.length-1;if(e>0){s.textContent=G?G.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],Y()),ut.nextNode(),n.push({type:2,index:++r});s.append(t[e],Y())}}}else if(8===s.nodeType)if(s.data===F)n.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(Z,t+1));)n.push({type:7,index:r}),t+=Z.length-1}r++}}static createElement(t,e){const i=Q.createElement("template");return i.innerHTML=t,i}}function bt(t,e,i=t,s){if(e===ct)return e;let r=void 0!==s?i._$Co?.[s]:i._$Cl;const a=tt(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=r:i._$Cl=r),void 0!==r&&(e=bt(t,r._$AS(t,e.values),r,s)),e}class gt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??Q).importNode(e,!0);ut.currentNode=s;let r=ut.nextNode(),a=0,o=0,n=i[0];for(;void 0!==n;){if(a===n.index){let e;2===n.type?e=new $t(r,r.nextSibling,this,t):1===n.type?e=new n.ctor(r,n.name,n.strings,this,t):6===n.type&&(e=new At(r,this,t)),this._$AV.push(e),n=i[++o]}a!==n?.index&&(r=ut.nextNode(),a++)}return ut.currentNode=Q,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class $t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=dt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=bt(this,t,e),tt(t)?t===dt||null==t||""===t?(this._$AH!==dt&&this._$AR(),this._$AH=dt):t!==this._$AH&&t!==ct&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>et(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==dt&&tt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Q.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=ft.createElement(mt(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new gt(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=pt.get(t.strings);return void 0===e&&pt.set(t.strings,e=new ft(t)),e}k(t){et(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new $t(this.O(Y()),this.O(Y()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=dt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=dt}_$AI(t,e=this,i,s){const r=this.strings;let a=!1;if(void 0===r)t=bt(this,t,e,0),a=!tt(t)||t!==this._$AH&&t!==ct,a&&(this._$AH=t);else{const s=t;let o,n;for(t=r[0],o=0;o<r.length-1;o++)n=bt(this,s[i+o],e,o),n===ct&&(n=this._$AH[o]),a||=!tt(n)||n!==this._$AH[o],n===dt?t=dt:t!==dt&&(t+=(n??"")+r[o+1]),this._$AH[o]=n}a&&!s&&this.j(t)}j(t){t===dt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class yt extends _t{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===dt?void 0:t}}class kt extends _t{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==dt)}}class wt extends _t{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){if((t=bt(this,t,e,0)??dt)===ct)return;const i=this._$AH,s=t===dt&&i!==dt||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==dt&&(i===dt||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class At{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){bt(this,t)}}const xt=V.litHtmlPolyfillSupport;xt?.(ft,$t),(V.litHtmlVersions??=[]).push("3.3.1");var Et,St;let Tt=class extends(r(a(o(n(h(l(c(t,"slider")))))))){constructor(){super(...arguments),Et.add(this),this.value=null}get[(Et=new WeakSet,d)](){return this.value?.toString()??null}firstUpdated(t){super.firstUpdated(t),this._focusRing?.attach(this)}update(t){super.update(t),t.has("value")&&this.dispatchEvent(new Event("value-change",{bubbles:!0}))}render(){return e`<div class="label" aria-hidden="true">${b(this,Et,"a",St)}</div>
45
+ <div class="base">
46
+ <m3e-focus-ring class="focus-ring" ?disabled="${this.disabled}"></m3e-focus-ring>
47
+ <div class="touch" aria-hidden="true"></div>
48
+ <div class="wrapper">
49
+ <div class="handle"></div>
50
+ </div>
51
+ </div>`}};var Pt,Ct,Mt,zt,Ut,Ot,Ht,Nt,Rt,jt,Lt,Dt,Wt,It,Bt,qt,Vt,Gt,Jt,Kt;St=function(){return this.closest("m3e-slider")?.displayWith?.(this.value)??this.value?.toString()??""},Tt.styles=s`
52
+ :host {
53
+ display: block;
54
+ box-sizing: border-box;
55
+ position: absolute;
56
+ outline: none;
57
+ top: 0;
58
+ bottom: 0;
59
+ border-radius: var(--m3e-slider-thumb-shape, ${p.shape.corner.full});
60
+ }
61
+ .base {
62
+ box-sizing: border-box;
63
+ vertical-align: middle;
64
+ display: inline-flex;
65
+ align-items: center;
66
+ justify-content: center;
67
+ position: relative;
68
+ width: 100%;
69
+ height: 100%;
70
+ border-radius: inherit;
71
+ }
72
+ .touch {
73
+ position: absolute;
74
+ height: 3rem;
75
+ left: 0;
76
+ right: 0;
77
+ }
78
+ .wrapper {
79
+ display: inline-flex;
80
+ justify-content: center;
81
+ height: 100%;
82
+ border-radius: inherit;
83
+ width: calc(var(--m3e-slider-thumb-width, 0.25rem) + calc(var(--m3e-slider-thumb-padding, 0.375em) * 2));
84
+ }
85
+ .focus-ring {
86
+ --m3e-focus-ring-growth-factor: 1.5;
87
+ top: calc(0px - var(--m3e-focus-ring-thickness, 0.1875rem));
88
+ bottom: calc(0px - var(--m3e-focus-ring-thickness, 0.1875rem));
89
+ left: var(--m3e-focus-ring-thickness, 0.1875rem);
90
+ right: var(--m3e-focus-ring-thickness, 0.1875rem);
91
+ }
92
+ .label {
93
+ user-select: none;
94
+ position: absolute;
95
+ display: flex;
96
+ align-items: center;
97
+ justify-content: center;
98
+ visibility: var(--_slider-label-visibility, hidden);
99
+ opacity: var(--_slider-label-opacity, 0);
100
+ transform: var(--_slider-label-transform, scale(0));
101
+ transition: ${i(`opacity ${p.motion.duration.short3} ${p.motion.easing.standard}, \n transform ${p.motion.duration.short3} ${p.motion.easing.standard},\n visibility ${p.motion.duration.short3} ${p.motion.easing.standard} allow-discrete`)};
102
+ width: var(--m3e-slider-label-width, 3rem);
103
+ height: var(--_m3e-slider-label-height, 2.75rem);
104
+ top: calc(0px - var(--_m3e-slider-label-height, 2.75rem) - var(--_m3e-slider-label-margin, 0.25rem));
105
+ left: calc(0px - 100%);
106
+ border-radius: var(--m3e-slider-label-shape, ${p.shape.corner.full});
107
+ background-color: var(--m3e-slider-label-container-color, ${p.color.inverseSurface});
108
+ color: var(--m3e-slider-label-color, ${p.color.inverseOnSurface});
109
+ font-size: var(--m3e-slider-label-font-size, ${p.typescale.standard.label.medium.fontSize});
110
+ font-weight: var(--m3e-slider-label-font-weight, ${p.typescale.standard.label.medium.fontWeight});
111
+ line-height: var(--m3e-slider-label-line-height, ${p.typescale.standard.label.medium.lineHeight});
112
+ letter-spacing: var(--m3e-slider-label-tracking, ${p.typescale.standard.label.medium.tracking});
113
+ }
114
+ @starting-style {
115
+ .label {
116
+ opacity: 0;
117
+ transform: scale(0);
118
+ }
119
+ }
120
+ .handle {
121
+ height: 100%;
122
+ width: var(--m3e-slider-thumb-width, 0.25rem);
123
+ border-radius: inherit;
124
+ transition: ${i(`width ${p.motion.duration.short2} ${p.motion.easing.standard}`)};
125
+ }
126
+ :host(:active:not([aria-disabled="true"])) .handle {
127
+ width: var(--m3e-slider-thumb-pressed-width, 0.125rem);
128
+ }
129
+ :host(:not([aria-disabled="true"])) .handle {
130
+ background-color: var(--m3e-slider-thumb-color, ${p.color.primary});
131
+ }
132
+ :host([aria-disabled="true"]) .handle {
133
+ opacity: var(--m3e-slider-thumb-disabled-opacity, 38%);
134
+ background-color: var(--m3e-slider-thumb-disabled-color, ${p.color.onSurface});
135
+ }
136
+ @media (prefers-reduced-motion) {
137
+ .label {
138
+ transition: none;
139
+ }
140
+ }
141
+ @media (forced-colors: active) {
142
+ .label {
143
+ forced-color-adjust: none;
144
+ background-color: CanvasText;
145
+ color: Canvas;
146
+ }
147
+ :host(:not([aria-disabled="true"])) .handle {
148
+ background-color: CanvasText;
149
+ }
150
+ :host([aria-disabled="true"]) .handle {
151
+ opacity: unset;
152
+ background-color: GrayText;
153
+ }
154
+ }
155
+ `,f([q(".focus-ring")],Tt.prototype,"_focusRing",void 0),f([B({type:Number,reflect:!0})],Tt.prototype,"value",void 0),Tt=f([$("m3e-slider-thumb")],Tt);let Zt=class extends(c(t,"none")){constructor(){super(),Pt.add(this),this._ticks=new Array,Ct.set(this,new Array),Mt.set(this,void 0),zt.set(this,0),Ut.set(this,0),Ot.set(this,0),this.size="extra-small",this.disabled=!1,this.discrete=!1,this.min=0,this.max=100,this.step=1,this.labelled=!1,this.displayWith=null,new u(this,{callback:()=>b(this,Pt,"m",Wt).call(this,!0)})}get thumbs(){return b(this,Ct,"f")}get isRange(){return b(this,Ct,"f").length>1}get thumb(){return b(this,Ct,"f")[0]??null}get lowerThumb(){return this.thumb}get upperThumb(){return b(this,Ct,"f")[1]??null}updated(t){super.updated(t),t.has("disabled")&&b(this,Ct,"f").forEach(t=>t.disabled=this.disabled)}render(){return e`<div
156
+ class="base"
157
+ tabindex="${(t=>t??dt)(this.disabled?void 0:"-1")}"
158
+ @pointerdown="${b(this,Pt,"m",Bt)}"
159
+ @pointermove="${b(this,Pt,"m",qt)}"
160
+ @pointerup="${b(this,Pt,"m",Vt)}"
161
+ @keydown="${b(this,Pt,"m",Gt)}"
162
+ @value-change="${b(this,Pt,"m",Jt)}"
163
+ >
164
+ <div class="track" aria-hidden="true">
165
+ <div class="track-inactive start"></div>
166
+ <div class="track-active"></div>
167
+ <div class="track-inactive end"></div>
168
+ </div>
169
+ <div class="ticks" aria-hidden="true">${this._ticks.map(t=>b(this,Pt,"m",Ht).call(this,t))}</div>
170
+ <slot @slotchange="${b(this,Pt,"m",Nt)}"></slot>
171
+ </div>`}};Ct=new WeakMap,Mt=new WeakMap,zt=new WeakMap,Ut=new WeakMap,Ot=new WeakMap,Pt=new WeakSet,Ht=function(t){return e`<div
172
+ class="tick ${t.active?"active":"inactive"}"
173
+ style="${m({transform:`translate(${b(this,Pt,"m",jt).call(this,t.value)}px, 0)`})}"
174
+ ></div>`},Nt=function(t){g(this,Ct,t.target.assignedElements({flatten:!0}).filter(t=>t instanceof Tt),"f"),b(this,Ct,"f").length>2&&(b(this,Ct,"f").length=2),this.isRange?this._base?.style.setProperty("--_slider-active-track-middle-shape","0"):this._base?.style.removeProperty("--_slider-active-track-middle-shape"),b(this,Pt,"m",Rt).call(this)},Rt=function(){b(this,Ct,"f").forEach((t,e)=>{this.disabled&&(t.disabled=!0),t.ariaValueMin=`${b(this,Ct,"f")[e-1]?.value??this.min}`,t.ariaValueMax=`${b(this,Ct,"f")[e+1]?.value??this.max}`,t.ariaValueNow=`${t.value??b(this,Ct,"f")[e-1]?.value??this.min}`})},jt=function(t){return(b(this,zt,"f")-b(this,Ut,"f"))*((t-this.min)/(this.max-this.min))},Lt=function(t){const e=t.clientX-b(this,Ot,"f"),i=0===this.step?1:this.step,s=Math.floor((this.max-this.min)/i),r=e/b(this,zt,"f"),a=Math.round(r*s)/s*(this.max-this.min)+this.min;return Math.round(a/i)*i},Dt=function(t=!1){this.lowerThumb&&(g(this,zt,!t&&b(this,zt,"f")>0?b(this,zt,"f"):this.clientWidth,"f"),g(this,Ut,!t&&b(this,Ut,"f")>0?b(this,Ut,"f"):this.lowerThumb.clientWidth,"f"),g(this,Ot,!t&&b(this,Ot,"f")>0?b(this,Ot,"f"):this.getBoundingClientRect().left,"f"))},Wt=function(t=!1){if(b(this,Pt,"m",Dt).call(this,t),!this.lowerThumb)return;const e=this.lowerThumb.value??this.min,i=b(this,Pt,"m",jt).call(this,e);if(this.lowerThumb.style.transform=`translate(${i}px, 0)`,this.upperThumb){const t=this.upperThumb.value??e,s=b(this,Pt,"m",jt).call(this,t);this.upperThumb.style.transform=`translate(${s}px, 0)`,this._base?.classList.toggle("range",!0),this._base?.style.setProperty("--_slider-inactive-track-before-size",`${i}px`),this._base?.style.setProperty("--_slider-active-track-offset",`${i+b(this,Ut,"f")}px`),this._base?.style.setProperty("--_slider-active-track-size",s-i-b(this,Ut,"f")+"px"),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${s+b(this,Ut,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",b(this,zt,"f")-b(this,Ut,"f")-s+"px"),b(this,Pt,"m",It).call(this,i=>i>e&&i<t)}else this._base?.classList.toggle("range",!1),this._base?.style.setProperty("--_slider-active-track-size",`${i}px`),this._base?.style.setProperty("--_slider-inactive-track-after-offset",`${i+b(this,Ut,"f")}px`),this._base?.style.setProperty("--_slider-inactive-track-after-size",b(this,zt,"f")-i-b(this,Ut,"f")+"px"),b(this,Pt,"m",It).call(this,t=>t<e)},It=function(t){if(this._ticks=[],this.discrete&&this.step>1)for(let e=this.min;e<=this.max;e+=this.step)this._ticks.push({value:e,active:t(e)});else this._ticks.push({value:this.min,active:t(this.min)}),this.min<0&&this.max>0&&this._ticks.push({value:0,active:t(0)}),this._ticks.push({value:this.max,active:t(this.max)})},Bt=function(t){if("mouse"===t.pointerType&&t.button>1)return;if(!this.lowerThumb||this.disabled)return;if(t.target instanceof HTMLElement&&t.target.setPointerCapture(t.pointerId),g(this,Mt,t.composedPath().find(t=>t instanceof Tt),"f"),b(this,Mt,"f"))return;const e=b(this,Pt,"m",Lt).call(this,t);if(this.upperThumb){const t=this.lowerThumb.value??this.min,i=this.upperThumb.value??t;if(e<t)this.lowerThumb.disabled||(b(this,Pt,"m",Kt).call(this,this.lowerThumb,e,!0),g(this,Mt,this.lowerThumb,"f"));else if(e>i)this.upperThumb.disabled||(b(this,Pt,"m",Kt).call(this,this.upperThumb,e,!0),g(this,Mt,this.upperThumb,"f"));else{e<(t+i)/2&&!this.lowerThumb.disabled?(b(this,Pt,"m",Kt).call(this,this.lowerThumb,e,!0),g(this,Mt,this.lowerThumb,"f")):this.upperThumb.disabled||(b(this,Pt,"m",Kt).call(this,this.upperThumb,e,!0),g(this,Mt,this.upperThumb,"f"))}}else this.lowerThumb.disabled||(b(this,Pt,"m",Kt).call(this,this.lowerThumb,e,!0),g(this,Mt,this.lowerThumb,"f"))},qt=function(t){if(!(t.target instanceof HTMLElement&&t.target.hasPointerCapture(t.pointerId)&&b(this,Mt,"f")))return;const e=b(this,Pt,"m",Lt).call(this,t);let i=this.min,s=this.max;b(this,Mt,"f")===this.upperThumb?i=Math.max(i,this.lowerThumb?.value??0):this.upperThumb&&(s=Math.min(s,this.upperThumb.value??this.max)),this.classList.contains("-animating")&&(this.classList.toggle("-animating",!1),b(this,Mt,"f").style.transition=""),b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),Math.min(s,Math.max(i,e)))},Vt=function(t){"mouse"===t.pointerType&&t.button>1||this.lowerThumb&&!this.disabled&&(t.target instanceof HTMLElement&&t.target.releasePointerCapture(t.pointerId),b(this,Mt,"f")&&b(this,Mt,"f").focus())},Gt=function(t){if(g(this,Mt,t.composedPath().find(t=>t instanceof Tt),"f"),!b(this,Mt,"f"))return;const e=b(this,Mt,"f").value??0;let i=this.min,s=this.max;switch(b(this,Mt,"f")===this.upperThumb?i=Math.max(i,this.lowerThumb?.value??0):this.upperThumb&&(s=Math.max(s,this.upperThumb.value??this.max)),t.key){case"Home":b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),i),t.preventDefault();break;case"End":b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),s),t.preventDefault();break;case"PageUp":b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),Math.min(s,e+(this.step>1?this.step:10))),t.preventDefault();break;case"PageDown":b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),Math.max(i,e-(this.step>1?this.step:10))),t.preventDefault();break;case"Down":case"ArrowDown":case"Left":case"ArrowLeft":b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),Math.max(i,e-this.step)),t.preventDefault();break;case"Up":case"ArrowUp":case"Right":case"ArrowRight":b(this,Pt,"m",Kt).call(this,b(this,Mt,"f"),Math.min(s,e+this.step)),t.preventDefault();break;case" ":t.preventDefault()}},Jt=function(t){t.stopPropagation(),b(this,Pt,"m",Rt).call(this),b(this,Pt,"m",Wt).call(this)},Kt=function(t,e,i=!1){if(t.value===e)return;const s=t.value;i&&!v()&&(this.classList.toggle("-animating",!0),t.addEventListener("transitionend",()=>{t.style.transition="",this.classList.toggle("-animating",!1)},{once:!0}),t.style.transition=`transform ${p.motion.spring.fastEffects}`),t.value=e,t.markAsDirty(),t.markAsTouched(),t.dispatchEvent(new Event("input",{bubbles:!0,composed:!0,cancelable:!0}))?t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})):t.value=s},Zt.styles=s`
175
+ :host {
176
+ display: inline-block;
177
+ vertical-align: middle;
178
+ min-inline-size: var(--m3e-slider-min-width, 12.5rem);
179
+ }
180
+ :host(:not([disabled])) {
181
+ cursor: pointer;
182
+ }
183
+ :host([size="extra-small"]),
184
+ :host([size="small"]) {
185
+ height: var(--m3e-slider-small-height, 2.75rem);
186
+ }
187
+ :host([size="extra-small"]) .base,
188
+ :host([size="small"]) .base {
189
+ --_slider-active-track-shape: var(--m3e-slider-small-active-track-shape, ${p.shape.corner.smallStart});
190
+ --_slider-inactive-track-start-shape: var(
191
+ --m3e-slider-small-inactive-active-track-start-shape,
192
+ ${p.shape.corner.smallStart}
193
+ );
194
+ --_slider-inactive-track-end-shape: var(
195
+ --m3e-slider-small-inactive-track-end-shape,
196
+ ${p.shape.corner.smallEnd}
197
+ );
198
+ }
199
+ :host([size="extra-small"]) .track {
200
+ height: calc(var(--m3e-slider-extra-small-track-height, 1rem));
201
+ }
202
+ :host([size="small"]) .track {
203
+ height: calc(var(--m3e-slider-small-track-height, 1.5rem));
204
+ }
205
+ :host([size="medium"]) {
206
+ height: var(--m3e-slider-medium-height, 3.25rem);
207
+ }
208
+ :host([size="medium"]) .base {
209
+ --_slider-active-track-shape: var(
210
+ --m3e-slider-medium-active-track-shape,
211
+ ${p.shape.corner.mediumStart}
212
+ );
213
+ --_slider-inactive-track-start-shape: var(
214
+ --m3e-slider-medium-inactive-active-track-start-shape,
215
+ ${p.shape.corner.mediumStart}
216
+ );
217
+ --_slider-inactive-track-end-shape: var(
218
+ --m3e-slider-medium-inactive-track-end-shape,
219
+ ${p.shape.corner.mediumEnd}
220
+ );
221
+ }
222
+ :host([size="medium"]) .track {
223
+ height: var(--m3e-slider-medium-track-height, 2.5rem);
224
+ }
225
+ :host([size="large"]) {
226
+ height: var(--m3e-slider-large-height, 4.25rem);
227
+ }
228
+ :host([size="large"]) .base {
229
+ --_slider-active-track-shape: var(--m3e-slider-large-active-track-shape, ${p.shape.corner.largeStart});
230
+ --_slider-inactive-track-start-shape: var(
231
+ --m3e-slider-large-inactive-active-track-start-shape,
232
+ ${p.shape.corner.largeStart}
233
+ );
234
+ --_slider-inactive-track-end-shape: var(
235
+ --m3e-slider-large-inactive-track-end-shape,
236
+ ${p.shape.corner.largeEnd}
237
+ );
238
+ }
239
+ :host([size="large"]) .track {
240
+ height: var(--m3e-slider-large-track-height, 3.5rem);
241
+ }
242
+ :host([size="extra-large"]) {
243
+ height: var(--m3e-slider-extra-large-height, 6.75rem);
244
+ }
245
+ :host([size="extra-large"]) .base {
246
+ --_slider-active-track-shape: var(
247
+ --m3e-slider-extra-large-active-track-shape,
248
+ ${p.shape.corner.extraLargeStart}
249
+ );
250
+ --_slider-inactive-track-start-shape: var(
251
+ --m3e-slider-extra-large-inactive-active-track-start-shape,
252
+ ${p.shape.corner.extraLargeStart}
253
+ );
254
+ --_slider-inactive-track-end-shape: var(
255
+ --m3e-slider-extra-large-inactive-track-end-shape,
256
+ ${p.shape.corner.extraLargeEnd}
257
+ );
258
+ }
259
+ :host([size="extra-large"]) .track {
260
+ height: var(--m3e-slider-extra-large-track-height, 6rem);
261
+ }
262
+ :host(.-animating) .track-active,
263
+ :host(.-animating) .track-inactive.start,
264
+ :host(.-animating) .track-inactive.end {
265
+ transition: ${i(`margin-left ${p.motion.spring.fastEffects},\n width ${p.motion.spring.fastEffects}`)};
266
+ }
267
+ .base {
268
+ display: inline-flex;
269
+ align-items: center;
270
+ position: relative;
271
+ width: 100%;
272
+ height: 100%;
273
+ border-radius: inherit;
274
+ outline: none;
275
+ }
276
+ .track {
277
+ position: relative;
278
+ flex: 1 1 auto;
279
+ }
280
+ .track-inactive,
281
+ .track-active {
282
+ position: absolute;
283
+ height: 100%;
284
+ }
285
+ .track-active {
286
+ margin-left: var(--_slider-active-track-offset, 0px);
287
+ width: var(--_slider-active-track-size, 0px);
288
+ border-radius: var(--_slider-active-track-middle-shape, var(--_slider-active-track-shape));
289
+ }
290
+ .track-inactive.start {
291
+ width: var(--_slider-inactive-track-before-size, 0px);
292
+ border-radius: var(--_slider-inactive-track-start-shape);
293
+ }
294
+ .track-inactive.end {
295
+ margin-left: var(--_slider-inactive-track-after-offset, 0px);
296
+ width: var(--_slider-inactive-track-after-size, 0px);
297
+ border-radius: var(--_slider-inactive-track-end-shape);
298
+ }
299
+ .ticks {
300
+ position: absolute;
301
+ width: 100%;
302
+ height: var(--m3e-slider-tick-size, 0.25rem);
303
+ overflow: visible;
304
+ }
305
+ .tick {
306
+ position: absolute;
307
+ top: 0;
308
+ left: calc(var(--m3e-slider-tick-size, 0.25rem) + calc(var(--m3e-slider-tick-size, 0.25rem) / 2));
309
+ width: var(--m3e-slider-tick-size, 0.25rem);
310
+ height: var(--m3e-slider-tick-size, 0.25rem);
311
+ border-radius: var(--m3e-slider-tick-shape, ${p.shape.corner.full});
312
+ }
313
+ :host(:not([disabled])) .track-inactive {
314
+ background-color: var(--m3e-slider-inactive-track-color, ${p.color.secondaryContainer});
315
+ }
316
+ :host([disabled]) .track-inactive {
317
+ background-color: color-mix(
318
+ in srgb,
319
+ var(--m3e-slider-disabled-inactive-track-color, ${p.color.onSurface})
320
+ var(--m3e-slider-disabled-inactive-track-opacity, 12%),
321
+ transparent
322
+ );
323
+ }
324
+ :host(:not([disabled])) .track-active {
325
+ background-color: var(--m3e-slider-active-track-color, ${p.color.primary});
326
+ }
327
+ :host([disabled]) .track-active {
328
+ background-color: color-mix(
329
+ in srgb,
330
+ var(--m3e-slider-disabled-active-track-color, ${p.color.onSurface})
331
+ var(--m3e-slider-disabled-active-track-opacity, 38%),
332
+ transparent
333
+ );
334
+ }
335
+ :host(:not([disabled])) .tick.active {
336
+ background-color: var(--m3e-slider-tick-active-color, ${p.color.onPrimary});
337
+ }
338
+ :host([disabled]) .tick.active {
339
+ background-color: var(--m3e-slider-disabled-tick-active-color, ${p.color.inverseOnSurface});
340
+ }
341
+ :host(:not([disabled])) .tick.inactive {
342
+ background-color: var(--m3e-slider-tick-inactive-color, ${p.color.onSecondaryContainer});
343
+ }
344
+ :host([disabled]) .tick.inactive {
345
+ background-color: var(--m3e-slider-disabled-tick-inactive-color, ${p.color.onSurface});
346
+ }
347
+ :host(:not([discrete])) .tick.active {
348
+ display: none;
349
+ }
350
+ :host(:hover[labelled]) .base,
351
+ :host(:focus-within[labelled]) .base {
352
+ --_slider-label-visibility: visible;
353
+ --_slider-label-opacity: 1;
354
+ --_slider-label-transform: scale(1);
355
+ }
356
+ @media (forced-colors: active) {
357
+ :host(:not([disabled])) .track-inactive {
358
+ background-color: unset;
359
+ }
360
+ :host(:not([disabled])) .base.range .track-inactive.start,
361
+ :host(:not([disabled])) .track-inactive.end {
362
+ border: 1px solid CanvasText;
363
+ box-sizing: border-box;
364
+ }
365
+ :host(:not([disabled])) .tick.inactive {
366
+ background-color: CanvasText;
367
+ }
368
+ :host(:not([disabled])) .tick.active {
369
+ background-color: Canvas;
370
+ }
371
+ :host(:not([disabled])) .track-active {
372
+ background-color: CanvasText;
373
+ }
374
+ :host([disabled]) .base.range .track-inactive.start,
375
+ :host([disabled]) .track-inactive.end {
376
+ border: 1px solid GrayText;
377
+ box-sizing: border-box;
378
+ }
379
+ :host([disabled]) .track-active {
380
+ background-color: GrayText;
381
+ }
382
+ :host([disabled]) .tick.inactive {
383
+ background-color: GrayText;
384
+ }
385
+ :host([disabled]) .tick.active {
386
+ background-color: Canvas;
387
+ }
388
+ }
389
+ `,f([q(".base")],Zt.prototype,"_base",void 0),f([function(t){return B({...t,state:!0,attribute:!1})}
390
+ /**
391
+ * @license
392
+ * Copyright 2017 Google LLC
393
+ * SPDX-License-Identifier: BSD-3-Clause
394
+ */()],Zt.prototype,"_ticks",void 0),f([B({reflect:!0})],Zt.prototype,"size",void 0),f([B({type:Boolean,reflect:!0})],Zt.prototype,"disabled",void 0),f([B({type:Boolean,reflect:!0})],Zt.prototype,"discrete",void 0),f([B({type:Number})],Zt.prototype,"min",void 0),f([B({type:Number})],Zt.prototype,"max",void 0),f([B({type:Number})],Zt.prototype,"step",void 0),f([B({type:Boolean})],Zt.prototype,"labelled",void 0),f([B({attribute:!1})],Zt.prototype,"displayWith",void 0),Zt=f([$("m3e-slider")],Zt);export{Zt as M3eSliderElement,Tt as M3eSliderThumbElement};
395
+ //# sourceMappingURL=index.min.js.map