Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@alaskaairux/auro-checkbox

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@alaskaairux/auro-checkbox - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

7

CHANGELOG.md
# Semantic Release Automated Changelog
## [1.1.11](https://github.com/AlaskaAirlines/auro-checkbox/compare/v1.1.10...v1.1.11) (2022-06-10)
### Bug Fixes
* **disabled state:** address bug when used with required group [#58](https://github.com/AlaskaAirlines/auro-checkbox/issues/58) ([e50f12a](https://github.com/AlaskaAirlines/auro-checkbox/commit/e50f12a9a78d6accd3af158b936bea570dc319ea))
## [1.1.10](https://github.com/AlaskaAirlines/auro-checkbox/compare/v1.1.9...v1.1.10) (2022-06-09)

@@ -4,0 +11,0 @@

2

dist/auro-checkbox-group__bundled.js
!function(){"use strict";var e,r={295:function(e,r,t){var o=t(148),i=t(499),s=(t(209),o.iv`:host{display:block;padding-bottom:1rem;padding-bottom:var(--auro-size-md)}:host([error]){color:#df0b37;color:var(--auro-color-text-error-on-light)}:host([disabled]){color:#dbdbdb;color:var(--auro-color-text-disabled-on-light)}.displayFlex legend+slot{display:-webkit-box;display:-ms-flexbox;display:flex;white-space:nowrap}fieldset{all:unset}legend{margin-bottom:1rem;margin-bottom:var(--auro-size-md)}.errorText{color:#df0b37;color:var(--auro-color-text-error-on-light)}
`);class a extends o.oi{constructor(){super(),this.index=0,this.maxNumber=3,this.disabled=!1,this.horizontal=!1,this.required=!1}static get styles(){return o.iv`
${s}
`}static get properties(){return{disabled:{type:Boolean,reflect:!0},horizontal:{type:Boolean},required:{type:Boolean},error:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.handleItems()}handleItems(){this.items=Array.from(this.querySelectorAll("auro-checkbox")),(this.disabled||this.error||this.required)&&this.items.forEach((e=>{e.disabled=this.disabled,e.required=this.required,e.error=Boolean(this.error)}))}updated(e){this.disabled&&e.has("disabled")&&this.items.forEach((e=>{e.disabled=this.disabled})),e.has("required")&&this.items.forEach((e=>{e.required=this.required})),e.has("error")&&this.items.forEach((e=>{e.error=Boolean(this.error)}))}render(){const e={displayFlex:this.horizontal&&this.items.length<=this.maxNumber};return o.dy`
`}static get properties(){return{disabled:{type:Boolean,reflect:!0},horizontal:{type:Boolean},required:{type:Boolean},error:{type:String,reflect:!0}}}connectedCallback(){super.connectedCallback(),this.handleItems()}handleItems(){this.items=Array.from(this.querySelectorAll("auro-checkbox")),(this.disabled||this.error)&&this.items.forEach((e=>{e.disabled=Boolean(this.disabled),e.required=Boolean(this.required),e.error=Boolean(this.error)}))}updated(e){this.disabled&&e.has("disabled")&&this.items.forEach((e=>{e.disabled=this.disabled})),e.has("required")&&this.items.forEach((e=>{e.required=this.required})),e.has("error")&&this.items.forEach((e=>{e.error=Boolean(this.error)}))}render(){const e={displayFlex:this.horizontal&&this.items.length<=this.maxNumber};return o.dy`
<fieldset class="${(0,i.$)(e)}">

@@ -6,0 +6,0 @@ ${this.required?o.dy`<legend><slot name="legend"></slot></legend>`:o.dy`<legend><slot name="legend"></slot> (optional)</legend>`}

@@ -55,6 +55,6 @@ // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license

if (this.disabled || this.error || this.required) {
if (this.disabled || this.error) {
this.items.forEach((el) => {
el.disabled = this.disabled;
el.required = this.required;
el.disabled = Boolean(this.disabled);
el.required = Boolean(this.required);
el.error = Boolean(this.error);

@@ -61,0 +61,0 @@ });

@@ -11,3 +11,3 @@ {

"name": "@alaskaairux/auro-checkbox",
"version": "1.1.10",
"version": "1.1.11",
"description": "Auro custom auro-checkbox element",

@@ -14,0 +14,0 @@ "author": "Product design and research",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc