@cargosense/cargo-design-system 1.0.9 → 1.0.10

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.
@@ -593,7 +593,7 @@
593
593
  </label>
594
594
 
595
595
 
596
- `}_onChange(A){if(!this.disabled)return this.checked=A.target.checked,this._internals.setValidity({valid:!0}),this._internals.setFormValue(this.checked),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0})),this.checked}setChecked(A){if(typeof A!="boolean")throw new TypeError("The checked parameter must be a boolean");this.checked=A,this._internals.setValidity({valid:A}),this._internals.setFormValue(A),this.dispatchEvent(new CustomEvent("change",{detail:{checked:A,value:this.value},bubbles:!0,composed:!0}))}firstUpdated(){this.disabled?this.shadowRoot.querySelector("cd-icon").color="#A9B2BC":this.shadowRoot.querySelector("#check").addEventListener("keydown",A=>{console.log("keydown event",A),(A.key==="Enter"||A.key===" ")&&(this.checked=!this.checked,this._internals.setValidity({valid:!this.checked}),this._internals.setFormValue(!this.checked),this.dispatchEvent(new CustomEvent("change",{detail:{checked:!this.checked,value:this.value},bubbles:!0,composed:!0})),this.requestUpdate())})}}function Ig(){typeof window<"u"&&!customElements.get("cd-checkbox")&&customElements.define("cd-checkbox",hA)}class UA extends o{static styles=M`
596
+ `}_onChange(A){if(!this.disabled)return this.checked=A.target.checked,this._internals.setValidity({valid:!0}),this._internals.setFormValue(this.checked),this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value},bubbles:!0,composed:!0})),this.checked}setChecked(A){if(typeof A!="boolean")throw new TypeError("The checked parameter must be a boolean");this.checked=A,this._internals.setValidity({valid:A}),this._internals.setFormValue(A),this.dispatchEvent(new CustomEvent("change",{detail:{checked:A,value:this.value},bubbles:!0,composed:!0}))}firstUpdated(){this.disabled?this.shadowRoot.querySelector("cd-icon").color="#A9B2BC":this.shadowRoot.querySelector("#check").addEventListener("keydown",A=>{(A.key==="Enter"||A.key===" ")&&(this.checked=!this.checked,this._internals.setValidity({valid:!this.checked}),this._internals.setFormValue(!this.checked),this.dispatchEvent(new CustomEvent("change",{detail:{checked:!this.checked,value:this.value},bubbles:!0,composed:!0})),this.requestUpdate())})}}function Ig(){typeof window<"u"&&!customElements.get("cd-checkbox")&&customElements.define("cd-checkbox",hA)}class UA extends o{static styles=M`
597
597
  @font-face {
598
598
  font-family: 'Geist';
599
599
  src: url(${i(Y)}) format('woff');