diff --git a/cypress/e2e/forms/checkbox.cy.ts b/cypress/e2e/forms/checkbox.cy.ts index 4c95fc81a..586703a8f 100644 --- a/cypress/e2e/forms/checkbox.cy.ts +++ b/cypress/e2e/forms/checkbox.cy.ts @@ -15,6 +15,7 @@ describe('Checkbox', () => { beforeEach(() => { cy.get('#section-1').as('SUT'); cy.getByName('chk1').as('CUT'); + cy.getByName('chk6').as('INDETERMINATE_CUT'); }); afterEach(() => { @@ -46,6 +47,13 @@ describe('Checkbox', () => { cy.get('@CUT').ngxGetValue().should('equal', true); }); + it('can uncheck from indeterminate state', () => { + cy.get('@INDETERMINATE_CUT').click(); + cy.get('@INDETERMINATE_CUT').ngxGetValue().should('equal', false); + cy.get('@INDETERMINATE_CUT').click(); + cy.get('@INDETERMINATE_CUT').ngxGetValue().should('equal', true); + }); + it('is keyboard accessible', () => { cy.get('@SUT').find('h1').contains('Demo').realClick(); diff --git a/projects/swimlane/ngx-ui/CHANGELOG.md b/projects/swimlane/ngx-ui/CHANGELOG.md index 56c070659..18c4451a5 100644 --- a/projects/swimlane/ngx-ui/CHANGELOG.md +++ b/projects/swimlane/ngx-ui/CHANGELOG.md @@ -2,9 +2,15 @@ ## HEAD (unreleased) +- Enhancement (`ngx-checkbox`): a new look is available that displays the `indeterminate` state. +- Enhancement (`ngx-checkbox`): new `@Input` named `indeterminate` set to a `boolean`. +- Enhancement (`ngx-checkbox`): implements an `EventEmitter` when `indeterminate` changes. - Enhancement: Support Angular 19, `standalone` now required in all `@Component` -- Enhancement: Update SASS `include` to `use` and `forward` and update for latest standard libraries -- Fix: CSS styles scoped to `webkit` that are now standardized +- Fix: CSS styles previously scoped to `webkit` now standardized have been updated +- Breaking: Updated SASS `@include` to `@use` and `@forward` and updated SASS for latest standard libraries + +Breaking: If your project depends on SASS exported from ngx-ui and your project still uses`@include`, +you must update your SASS to fully comply with `@use`. ## 48.3.0 (2024-12-17) diff --git a/projects/swimlane/ngx-ui/src/lib/components/checkbox/checkbox.component.html b/projects/swimlane/ngx-ui/src/lib/components/checkbox/checkbox.component.html index faa0ce2bd..5afe2c0fd 100644 --- a/projects/swimlane/ngx-ui/src/lib/components/checkbox/checkbox.component.html +++ b/projects/swimlane/ngx-ui/src/lib/components/checkbox/checkbox.component.html @@ -1,6 +1,9 @@ -