@warp-ds/elements 2.2.0-next.14 → 2.2.0-next.15

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.
@@ -24,6 +24,8 @@ declare class WarpSliderThumb extends WarpSliderThumb_base {
24
24
  /** Set by `<w-slider>` */
25
25
  markers: string;
26
26
  /** Set by `<w-slider>` */
27
+ required: boolean;
28
+ /** Set by `<w-slider>` */
27
29
  step: number;
28
30
  /** Set by `<w-slider>` */
29
31
  min: string;
@@ -1,4 +1,4 @@
1
- var ie=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var H=s=>{throw TypeError(s)};var c=(s,e,o,t)=>{for(var a=t>1?void 0:t?ne(e,o):e,b=s.length-1,m;b>=0;b--)(m=s[b])&&(a=(t?m(e,o,a):m(a))||a);return t&&a&&ie(e,o,a),a};var se=(s,e,o)=>e.has(s)||H("Cannot "+o);var W=(s,e,o)=>e.has(s)?H("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var x=(s,e,o)=>(se(s,e,"access private method"),o);import{html as S,LitElement as re,nothing as U}from"lit";var n=function(s,e,o,t){if(o==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!t:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?t:o==="a"?t.call(s):t?t.value:e.get(s)},h=function(s,e,o,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!a:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(s,o):a?a.value=o:e.set(s,o),o};function B(s){var e,o,t,a,b,m,k,E,y,z,w,A,j,V,N,_,L,T,Z;class ae extends s{constructor(...r){var i,d,p;super(...r),e.add(this),this.internals=this.attachInternals(),o.set(this,!1),t.set(this,!1),a.set(this,!1),b.set(this,void 0),m.set(this,void 0),k.set(this,!0),y.set(this,""),z.set(this,()=>{h(this,a,!0,"f"),h(this,o,!0,"f"),n(this,e,"m",_).call(this)}),w.set(this,()=>{h(this,o,!1,"f"),n(this,e,"m",L).call(this,this.shouldFormValueUpdate()?n(this,y,"f"):""),!this.validity.valid&&n(this,a,"f")&&h(this,t,!0,"f");let f=n(this,e,"m",_).call(this);this.validationMessageCallback&&this.validationMessageCallback(f?this.internals.validationMessage:"")}),A.set(this,()=>{var f;n(this,k,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),h(this,k,!1,"f")),h(this,a,!0,"f"),h(this,t,!0,"f"),n(this,e,"m",_).call(this),(f=this===null||this===void 0?void 0:this.validationMessageCallback)===null||f===void 0||f.call(this,this.showError?this.internals.validationMessage:"")}),j.set(this,void 0),V.set(this,!1),N.set(this,Promise.resolve()),(i=this.addEventListener)===null||i===void 0||i.call(this,"focus",n(this,z,"f")),(d=this.addEventListener)===null||d===void 0||d.call(this,"blur",n(this,w,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"invalid",n(this,A,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let r=this.validators.map(p=>p.attribute).flat(),i=super.observedAttributes||[];return[...new Set([...i,...r])]}static getValidator(r){return this.validators.find(i=>i.attribute===r)||null}static getValidators(r){return this.validators.filter(i=>{var d;if(i.attribute===r||!((d=i.attribute)===null||d===void 0)&&d.includes(r))return!0})}get form(){return this.internals.form}get showError(){return n(this,e,"m",_).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(r,i,d){var p;(p=super.attributeChangedCallback)===null||p===void 0||p.call(this,r,i,d);let M=this.constructor.getValidators(r);M!=null&&M.length&&this.validationTarget&&this.setValue(n(this,y,"f"))}setValue(r){var i;h(this,t,!1,"f"),(i=this.validationMessageCallback)===null||i===void 0||i.call(this,""),h(this,y,r,"f");let p=this.shouldFormValueUpdate()?r:null;this.internals.setFormValue(p),n(this,e,"m",L).call(this,p),this.valueChangedCallback&&this.valueChangedCallback(p),n(this,e,"m",_).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(r=>r(n(this,N,"f")))}formResetCallback(){var r,i;h(this,a,!1,"f"),h(this,t,!1,"f"),n(this,e,"m",_).call(this),(r=this.resetFormControl)===null||r===void 0||r.call(this),(i=this.validationMessageCallback)===null||i===void 0||i.call(this,n(this,e,"m",_).call(this)?this.validationMessage:"")}}return o=new WeakMap,t=new WeakMap,a=new WeakMap,b=new WeakMap,m=new WeakMap,k=new WeakMap,y=new WeakMap,z=new WeakMap,w=new WeakMap,A=new WeakMap,j=new WeakMap,V=new WeakMap,N=new WeakMap,e=new WeakSet,E=function(){let r=this.getRootNode(),i=`${this.localName}[name="${this.getAttribute("name")}"]`;return r.querySelectorAll(i)},_=function(){if(this.hasAttribute("disabled"))return!1;let r=n(this,t,"f")||n(this,a,"f")&&!this.validity.valid&&!n(this,o,"f");return r&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),r},L=function(r){let i=this.constructor,d={},p=i.validators,f=[],M=p.some(g=>g.isValid instanceof Promise);n(this,V,"f")||(h(this,N,new Promise(g=>{h(this,j,g,"f")}),"f"),h(this,V,!0,"f")),n(this,b,"f")&&(n(this,b,"f").abort(),h(this,m,n(this,b,"f"),"f"));let P=new AbortController;h(this,b,P,"f");let Y,G=!1;p.length&&(p.forEach(g=>{let R=g.key||"customError",C=g.isValid(this,r,P.signal);C instanceof Promise?(f.push(C),C.then(D=>{D!=null&&(d[R]=!D,Y=n(this,e,"m",Z).call(this,g,r),n(this,e,"m",T).call(this,d,Y))})):(d[R]=!C,this.validity[R]!==!C&&(G=!0),!C&&!Y&&(Y=n(this,e,"m",Z).call(this,g,r)))}),Promise.allSettled(f).then(()=>{var g;P!=null&&P.signal.aborted||(h(this,V,!1,"f"),(g=n(this,j,"f"))===null||g===void 0||g.call(this))}),(G||!M)&&n(this,e,"m",T).call(this,d,Y))},T=function(r,i){if(this.validationTarget)this.internals.setValidity(r,i,this.validationTarget),h(this,k,!1,"f");else{if(this.internals.setValidity(r,i),this.internals.validity.valid)return;h(this,k,!0,"f")}},Z=function(r,i){if(this.validityCallback){let d=this.validityCallback(r.key||"customError");if(d)return d}return r.message instanceof Function?r.message(this,i):r.message},ae}import{property as F,query as oe,state as v}from"lit/decorators.js";import{classMap as ce}from"lit/directives/class-map.js";import{ifDefined as O}from"lit/directives/if-defined.js";import{css as J}from"lit";var K=J`
1
+ var ie=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var G=s=>{throw TypeError(s)};var d=(s,e,o,t)=>{for(var a=t>1?void 0:t?ne(e,o):e,b=s.length-1,m;b>=0;b--)(m=s[b])&&(a=(t?m(e,o,a):m(a))||a);return t&&a&&ie(e,o,a),a};var se=(s,e,o)=>e.has(s)||G("Cannot "+o);var B=(s,e,o)=>e.has(s)?G("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(s):e.set(s,o);var x=(s,e,o)=>(se(s,e,"access private method"),o);import{html as N,LitElement as re,nothing as U}from"lit";var n=function(s,e,o,t){if(o==="a"&&!t)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?s!==e||!t:!e.has(s))throw new TypeError("Cannot read private member from an object whose class did not declare it");return o==="m"?t:o==="a"?t.call(s):t?t.value:e.get(s)},h=function(s,e,o,t,a){if(t==="m")throw new TypeError("Private method is not writable");if(t==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?s!==e||!a:!e.has(s))throw new TypeError("Cannot write private member to an object whose class did not declare it");return t==="a"?a.call(s,o):a?a.value=o:e.set(s,o),o};function W(s){var e,o,t,a,b,m,k,F,y,w,L,X,Y,E,j,_,S,A,Z;class ae extends s{constructor(...r){var i,c,p;super(...r),e.add(this),this.internals=this.attachInternals(),o.set(this,!1),t.set(this,!1),a.set(this,!1),b.set(this,void 0),m.set(this,void 0),k.set(this,!0),y.set(this,""),w.set(this,()=>{h(this,a,!0,"f"),h(this,o,!0,"f"),n(this,e,"m",_).call(this)}),L.set(this,()=>{h(this,o,!1,"f"),n(this,e,"m",S).call(this,this.shouldFormValueUpdate()?n(this,y,"f"):""),!this.validity.valid&&n(this,a,"f")&&h(this,t,!0,"f");let f=n(this,e,"m",_).call(this);this.validationMessageCallback&&this.validationMessageCallback(f?this.internals.validationMessage:"")}),X.set(this,()=>{var f;n(this,k,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),h(this,k,!1,"f")),h(this,a,!0,"f"),h(this,t,!0,"f"),n(this,e,"m",_).call(this),(f=this===null||this===void 0?void 0:this.validationMessageCallback)===null||f===void 0||f.call(this,this.showError?this.internals.validationMessage:"")}),Y.set(this,void 0),E.set(this,!1),j.set(this,Promise.resolve()),(i=this.addEventListener)===null||i===void 0||i.call(this,"focus",n(this,w,"f")),(c=this.addEventListener)===null||c===void 0||c.call(this,"blur",n(this,L,"f")),(p=this.addEventListener)===null||p===void 0||p.call(this,"invalid",n(this,X,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){let r=this.validators.map(p=>p.attribute).flat(),i=super.observedAttributes||[];return[...new Set([...i,...r])]}static getValidator(r){return this.validators.find(i=>i.attribute===r)||null}static getValidators(r){return this.validators.filter(i=>{var c;if(i.attribute===r||!((c=i.attribute)===null||c===void 0)&&c.includes(r))return!0})}get form(){return this.internals.form}get showError(){return n(this,e,"m",_).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(r,i,c){var p;(p=super.attributeChangedCallback)===null||p===void 0||p.call(this,r,i,c);let $=this.constructor.getValidators(r);$!=null&&$.length&&this.validationTarget&&this.setValue(n(this,y,"f"))}setValue(r){var i;h(this,t,!1,"f"),(i=this.validationMessageCallback)===null||i===void 0||i.call(this,""),h(this,y,r,"f");let p=this.shouldFormValueUpdate()?r:null;this.internals.setFormValue(p),n(this,e,"m",S).call(this,p),this.valueChangedCallback&&this.valueChangedCallback(p),n(this,e,"m",_).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(r=>r(n(this,j,"f")))}formResetCallback(){var r,i;h(this,a,!1,"f"),h(this,t,!1,"f"),n(this,e,"m",_).call(this),(r=this.resetFormControl)===null||r===void 0||r.call(this),(i=this.validationMessageCallback)===null||i===void 0||i.call(this,n(this,e,"m",_).call(this)?this.validationMessage:"")}}return o=new WeakMap,t=new WeakMap,a=new WeakMap,b=new WeakMap,m=new WeakMap,k=new WeakMap,y=new WeakMap,w=new WeakMap,L=new WeakMap,X=new WeakMap,Y=new WeakMap,E=new WeakMap,j=new WeakMap,e=new WeakSet,F=function(){let r=this.getRootNode(),i=`${this.localName}[name="${this.getAttribute("name")}"]`;return r.querySelectorAll(i)},_=function(){if(this.hasAttribute("disabled"))return!1;let r=n(this,t,"f")||n(this,a,"f")&&!this.validity.valid&&!n(this,o,"f");return r&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),r},S=function(r){let i=this.constructor,c={},p=i.validators,f=[],$=p.some(g=>g.isValid instanceof Promise);n(this,E,"f")||(h(this,j,new Promise(g=>{h(this,Y,g,"f")}),"f"),h(this,E,!0,"f")),n(this,b,"f")&&(n(this,b,"f").abort(),h(this,m,n(this,b,"f"),"f"));let V=new AbortController;h(this,b,V,"f");let P,O=!1;p.length&&(p.forEach(g=>{let D=g.key||"customError",z=g.isValid(this,r,V.signal);z instanceof Promise?(f.push(z),z.then(R=>{R!=null&&(c[D]=!R,P=n(this,e,"m",Z).call(this,g,r),n(this,e,"m",A).call(this,c,P))})):(c[D]=!z,this.validity[D]!==!z&&(O=!0),!z&&!P&&(P=n(this,e,"m",Z).call(this,g,r)))}),Promise.allSettled(f).then(()=>{var g;V!=null&&V.signal.aborted||(h(this,E,!1,"f"),(g=n(this,Y,"f"))===null||g===void 0||g.call(this))}),(O||!$)&&n(this,e,"m",A).call(this,c,P))},A=function(r,i){if(this.validationTarget)this.internals.setValidity(r,i,this.validationTarget),h(this,k,!1,"f");else{if(this.internals.setValidity(r,i),this.internals.validity.valid)return;h(this,k,!0,"f")}},Z=function(r,i){if(this.validityCallback){let c=this.validityCallback(r.key||"customError");if(c)return c}return r.message instanceof Function?r.message(this,i):r.message},ae}import{property as C,query as oe,state as v}from"lit/decorators.js";import{classMap as ce}from"lit/directives/class-map.js";import{ifDefined as q}from"lit/directives/if-defined.js";import{css as J}from"lit";var K=J`
2
2
  *,
3
3
  :before,
4
4
  :after {
@@ -2566,7 +2566,7 @@ var ie=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var H=s=>{th
2566
2566
  :host([name='to']) .w-slider-thumb__range::-webkit-slider-thumb {
2567
2567
  margin-left: calc(1px * var(--thumb-offset) / 2);
2568
2568
  }
2569
- `;import{css as de}from"lit";var ee=de`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;var te={};var u,I,X,q,l=class extends B(re){constructor(){super(...arguments);W(this,u);this._invalid=!1;this._showTooltip=!1;this.anchorPositioningStyleElement=null}async connectedCallback(){var o;if(super.connectedCallback(),"anchorName"in document.documentElement.style)await this.updateComplete;else{let t=te.url.substring(0,te.url.lastIndexOf("/"));try{let[{default:a}]=await Promise.all([import(`${t}/oddbird-css-anchor-positioning.js`),this.updateComplete]);this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),this.shadowRoot.prepend(this.anchorPositioningStyleElement)),this.anchorPositioningStyleElement.textContent=`
2569
+ `;import{css as de}from"lit";var ee=de`*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;var te={};var u,I,T,H,l=class extends W(re){constructor(){super(...arguments);B(this,u);this._invalid=!1;this._showTooltip=!1;this.anchorPositioningStyleElement=null}async connectedCallback(){var o;if(super.connectedCallback(),"anchorName"in document.documentElement.style)await this.updateComplete;else{let t=te.url.substring(0,te.url.lastIndexOf("/"));try{let[{default:a}]=await Promise.all([import(`${t}/oddbird-css-anchor-positioning.js`),this.updateComplete]);this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),this.shadowRoot.prepend(this.anchorPositioningStyleElement)),this.anchorPositioningStyleElement.textContent=`
2570
2570
  /*
2571
2571
  * The polyfill can only anchor to ::before and ::after pseudo elements.
2572
2572
  * We work around that by recreating a transparent version of the active range
@@ -2611,36 +2611,36 @@ var ie=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var H=s=>{th
2611
2611
  :host([name='from']) #target {
2612
2612
  left: anchor(--polyfilled-thumb left);
2613
2613
  }
2614
- `,await a.call(this,{elements:[this.anchorPositioningStyleElement]})}catch(a){console.error(new Error("Error registering the CSS anchor positioning polyfill. The UI will look broken.",{cause:a}))}}this.range.value=(o=this.value)!=null?o:this.max}updated(o){if(o.has("value")&&(this.setValue(this.value),!("anchorName"in document.documentElement.style))){let t=this.shadowRoot.querySelector("#target"),a=getComputedStyle(t).getPropertyValue("width"),b=Number.parseFloat(a.replace("px",""))/2;t.style.setProperty("margin-left",`-${b}px`)}o.has("_invalid")&&this.dispatchEvent(new CustomEvent("slidervalidity",{bubbles:!0,detail:{invalid:this._invalid}}))}render(){return S`
2614
+ `,await a.call(this,{elements:[this.anchorPositioningStyleElement]})}catch(a){console.error(new Error("Error registering the CSS anchor positioning polyfill. The UI will look broken.",{cause:a}))}}this.range.value=(o=this.value)!=null?o:this.max}updated(o){if(o.has("value")&&(this.setValue(this.value),!("anchorName"in document.documentElement.style))){let t=this.shadowRoot.querySelector("#target"),a=getComputedStyle(t).getPropertyValue("width"),b=Number.parseFloat(a.replace("px",""))/2;t.style.setProperty("margin-left",`-${b}px`)}o.has("_invalid")&&this.dispatchEvent(new CustomEvent("slidervalidity",{bubbles:!0,detail:{invalid:this._invalid}}))}render(){return N`
2615
2615
  <div class="w-slider-thumb">
2616
2616
  <label for="range">${this.label}</label>
2617
- ${"anchorName"in document.documentElement.style?U:S`<div id="anchor"></div>`}
2617
+ ${"anchorName"in document.documentElement.style?U:N`<div id="anchor"></div>`}
2618
2618
  <input
2619
2619
  id="range"
2620
2620
  aria-label="${this.ariaLabel}"
2621
- aria-describedby="${O(this.ariaDescription?"aria-description":void 0)}"
2621
+ aria-describedby="${q(this.ariaDescription?"aria-description":void 0)}"
2622
2622
  class="w-slider-thumb__range"
2623
2623
  type="range"
2624
2624
  .value="${this.value}"
2625
2625
  min="${this.min}"
2626
2626
  max="${this.max}"
2627
2627
  name="${this.name}"
2628
- step="${O(this.step?this.step:void 0)}"
2628
+ step="${q(this.step?this.step:void 0)}"
2629
2629
  ?disabled="${this.disabled||this.forceDisabled}"
2630
2630
  @mousedown="${x(this,u,I)}"
2631
- @mouseup="${x(this,u,X)}"
2631
+ @mouseup="${x(this,u,T)}"
2632
2632
  @touchstart="${x(this,u,I)}"
2633
- @touchend="${x(this,u,X)}"
2633
+ @touchend="${x(this,u,T)}"
2634
2634
  @focus="${x(this,u,I)}"
2635
- @blur="${x(this,u,X)}"
2636
- @input="${x(this,u,q)}" />
2635
+ @blur="${x(this,u,T)}"
2636
+ @input="${x(this,u,H)}" />
2637
2637
 
2638
2638
  <span class="w-slider-thumb__from-marker">${this.formatter?this.formatter(this.min):this.min} ${this.suffix}</span>
2639
2639
  <span class="w-slider-thumb__to-marker">${this.formatter?this.formatter(this.max):this.max} ${this.suffix}</span>
2640
2640
 
2641
2641
  <w-textfield
2642
2642
  aria-label="${this.ariaLabel}"
2643
- aria-description="${O(this.ariaDescription)}"
2643
+ aria-description="${q(this.ariaDescription)}"
2644
2644
  class="w-slider-thumb__textfield"
2645
2645
  type="number"
2646
2646
  min="${this.min}"
@@ -2648,16 +2648,16 @@ var ie=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var H=s=>{th
2648
2648
  .formatter=${this.formatter}
2649
2649
  .value="${this.value}"
2650
2650
  ?invalid="${this.forceInvalid||this._invalid}"
2651
- @input="${x(this,u,q)}">
2652
- ${this.suffix?S`<w-affix slot="suffix" label="${this.suffix}"></w-affix>`:U}
2651
+ @input="${x(this,u,H)}">
2652
+ ${this.suffix?N`<w-affix slot="suffix" label="${this.suffix}"></w-affix>`:U}
2653
2653
  </w-textfield>
2654
2654
 
2655
2655
  <div id="target" class="${ce({"w-slider-thumb__tooltip":!0,"w-slider-thumb__tooltip--visible":this._showTooltip})}">
2656
- ${this.value?this.formatter?this.formatter(this.value):this.value:0}${this.suffix?S`&nbsp;${this.suffix}`:U}
2656
+ ${this.value?this.formatter?this.formatter(this.value):this.value:0}${this.suffix?N`&nbsp;${this.suffix}`:U}
2657
2657
  </div>
2658
2658
 
2659
2659
  <!-- aria-description is still not recommended for general use, so make a visually hidden element and refer to it with aria-describedby -->
2660
2660
  <span class="sr-only" id="aria-description">${this.ariaDescription}</span>
2661
2661
  </div>
2662
- `}};u=new WeakSet,I=function(){this._showTooltip=!0},X=function(){this._showTooltip=!1},q=function(o){var y;let t=(y=o.detail)==null?void 0:y.value;t&&this._invalid&&(this._invalid=!1);let a=t||o.currentTarget.value,b=Number.parseInt(a),m=Number.parseInt(this.max),k=Number.parseInt(this.min);(b>m||b<k)&&(this._invalid=!0);let E=!1;if(this.slot){let z=getComputedStyle(this);if(this.slot==="from"){let w=z.getPropertyValue("--to");if(b>Number.parseInt(w)){if(t)return this._invalid=!0,!1;E=!0,this.value=w}}else{let w=z.getPropertyValue("--from");if(b<Number.parseInt(w)){if(t)return this._invalid=!0,!1;E=!0,this.value=w}}}return E?(o.preventDefault(),this.range.value=this.value,!1):(this.value=a,!0)},l.shadowRootOptions={...re.shadowRootOptions,delegatesFocus:!0},l.styles=[K,ee,Q],c([F({attribute:"aria-label"})],l.prototype,"ariaLabel",2),c([F({attribute:"aria-description"})],l.prototype,"ariaDescription",2),c([F()],l.prototype,"label",2),c([F()],l.prototype,"name",2),c([F({reflect:!0})],l.prototype,"value",2),c([F({type:Boolean,reflect:!0})],l.prototype,"disabled",2),c([v()],l.prototype,"markers",2),c([v()],l.prototype,"step",2),c([v()],l.prototype,"min",2),c([v()],l.prototype,"max",2),c([v()],l.prototype,"suffix",2),c([v()],l.prototype,"forceDisabled",2),c([v()],l.prototype,"forceInvalid",2),c([v()],l.prototype,"formatter",2),c([oe('input[type="range"]')],l.prototype,"range",2),c([oe("w-textfield")],l.prototype,"textfield",2),c([v()],l.prototype,"_invalid",2),c([v()],l.prototype,"_showTooltip",2);customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",l);export{l as WarpSliderThumb};
2662
+ `}};u=new WeakSet,I=function(){this._showTooltip=!0},T=function(){this._showTooltip=!1},H=function(o){let t=o.currentTarget.tagName==="W-TEXTFIELD";if(o instanceof CustomEvent)return;let a=o.currentTarget.value;if(a==="")return this.required&&(this._invalid=!0),!1;t&&this._invalid&&(this._invalid=!1);let b=Number.parseInt(a),m=Number.parseInt(this.max),k=Number.parseInt(this.min);(b>m||b<k)&&(this._invalid=!0);let F=!1;if(this.slot){let y=getComputedStyle(this);if(this.slot==="from"){let w=y.getPropertyValue("--to");if(b>Number.parseInt(w)){if(t)return this._invalid=!0,!1;F=!0,this.value=w}}else{let w=y.getPropertyValue("--from");if(b<Number.parseInt(w)){if(t)return this._invalid=!0,!1;F=!0,this.value=w}}}return F?(o.preventDefault(),this.range.value=this.value,!1):(this.value=a,!0)},l.shadowRootOptions={...re.shadowRootOptions,delegatesFocus:!0},l.styles=[K,ee,Q],d([C({attribute:"aria-label"})],l.prototype,"ariaLabel",2),d([C({attribute:"aria-description"})],l.prototype,"ariaDescription",2),d([C()],l.prototype,"label",2),d([C()],l.prototype,"name",2),d([C({reflect:!0})],l.prototype,"value",2),d([C({type:Boolean,reflect:!0})],l.prototype,"disabled",2),d([v()],l.prototype,"markers",2),d([v()],l.prototype,"required",2),d([v()],l.prototype,"step",2),d([v()],l.prototype,"min",2),d([v()],l.prototype,"max",2),d([v()],l.prototype,"suffix",2),d([v()],l.prototype,"forceDisabled",2),d([v()],l.prototype,"forceInvalid",2),d([v()],l.prototype,"formatter",2),d([oe('input[type="range"]')],l.prototype,"range",2),d([oe("w-textfield")],l.prototype,"textfield",2),d([v()],l.prototype,"_invalid",2),d([v()],l.prototype,"_showTooltip",2);customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",l);export{l as WarpSliderThumb};
2663
2663
  //# sourceMappingURL=slider-thumb.js.map