Skip to content

Commit

Permalink
Merge branch 'fix/issue-1396' of github.com:baloise/design-system int…
Browse files Browse the repository at this point in the history
…o fix/issue-1396
  • Loading branch information
hirsch88 committed May 23, 2024
2 parents be6855d + 38aa005 commit d2f7b47
Show file tree
Hide file tree
Showing 44 changed files with 250 additions and 143 deletions.
5 changes: 0 additions & 5 deletions .changeset/wise-adults-help.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/wise-moles-glow.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
name: 📝 Create Issue Branch
runs-on: ubuntu-latest
steps:
- uses: robvanderleek/create-issue-branch@main
- uses: robvanderleek/create-issue-branch@1.6.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ npm-debug.log
yarn-error.log
testem.log
/typings
.npmrc

# System Files
.DS_Store
Expand Down
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## 16.2.0

### Minor Changes

- **date**: the new property `allow-invalid-value` includes a functionality where it returns the string `INVALID_VALUE` within the balChange event if the input provided is not valid. ( [#1384](https://github.com/baloise/design-system/pull/1384))

### Patch Changes

- **modal**: will keep scroll postition ( [#1398](https://github.com/baloise/design-system/pull/1398))

- **footer**: make language selection in footer consistent (#1388) ( [#1397](https://github.com/baloise/design-system/pull/1397))

- **snackbar**: adjust position for angular standalone build with optimizer ( [#1390](https://github.com/baloise/design-system/pull/1390))

- **toast**: adjust position for angular standalone build with optimizer ( [#1390](https://github.com/baloise/design-system/pull/1390))

## 16.1.0

### Minor Changes
Expand Down
14 changes: 7 additions & 7 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "docs",
"version": "15.2.9",
"version": "15.2.10",
"private": true,
"dependencies": {
"@baloise/ds-brand-icons": "16.1.0",
"@baloise/ds-core": "16.1.0",
"@baloise/ds-styles": "16.1.0",
"@baloise/ds-css": "16.1.0",
"@baloise/ds-icons": "16.1.0",
"@baloise/ds-tokens": "16.1.0",
"@baloise/ds-brand-icons": "16.2.0",
"@baloise/ds-core": "16.2.0",
"@baloise/ds-styles": "16.2.0",
"@baloise/ds-css": "16.2.0",
"@baloise/ds-icons": "16.2.0",
"@baloise/ds-tokens": "16.2.0",
"@storybook/addon-essentials": "~7.6.10",
"@storybook/addon-links": "~7.6.10",
"@storybook/blocks": "~7.6.10",
Expand Down
1 change: 0 additions & 1 deletion docs/public/assets/css/baloise-design-system.min.css

This file was deleted.

21 changes: 21 additions & 0 deletions e2e/cypress/component/bal-date.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,25 @@ describe('bal-date', () => {
cy.get('@balChange').should('have.been.calledOnce')
cy.get('@balChange').shouldHaveEventDetail('2022-12-11')
})

it('check if invalid date is returned', () => {
onBalChangeSpy = cy.spy().as('balChange')
cy.mount<Components.BalDate, HTMLBalDateElementEventMap>(`<bal-date allow-invalid-value></bal-date>`, {
props: {
defaultDate: '2023-01-01',
placeholder: 'Enter date',
},
events: {
balChange: onBalChangeSpy,
},
}).as('calendar')

cy.getByPlaceholder('Enter date')
.click()
.type('2.42.2023', { delay: 20 })
.blur({ force: true })
.should('have.value', '02.42.2023')
cy.get('@balChange').should('have.been.calledOnce')
cy.get('@balChange').shouldHaveEventDetail('INVALID_VALUE')
})
})
6 changes: 3 additions & 3 deletions e2e/package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "e2e",
"version": "15.2.9",
"version": "15.2.10",
"private": true,
"scripts": {
"postinstall": "cypress install",
"visual-report": "npx reg-cli cypress/snapshots/actual cypress/snapshots/base/visual cypress/snapshots/diff -R cypress/snapshots/report.html --ignoreChange --matchingThreshold 0.15"
},
"dependencies": {
"@baloise/ds-core": "16.1.0",
"@baloise/ds-testing": "16.1.0",
"@baloise/ds-core": "16.2.0",
"@baloise/ds-testing": "16.2.0",
"@baloise/web-app-utils": "~3.11.2",
"@cypress/mount-utils": "^4.1.0",
"axe-core": "~4.8.4",
Expand Down
2 changes: 1 addition & 1 deletion libs/nx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/ds-nx",
"version": "16.1.0",
"version": "16.2.0",
"private": true,
"dependencies": {
"@nx/devkit": "18.0.4",
Expand Down
106 changes: 53 additions & 53 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/angular-common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@baloise/ds-angular-common",
"version": "16.1.0",
"version": "16.2.0",
"description": "The Baloise Design-System is an open source project for styling awesome web applications that follow the Baloise corporate styling guidelines.",
"repository": {
"type": "git",
Expand All @@ -17,7 +17,7 @@
"rxjs": ">=7.0.0"
},
"dependencies": {
"@baloise/ds-core": "16.1.0"
"@baloise/ds-core": "16.2.0"
},
"sideEffects": false
}
Loading

0 comments on commit d2f7b47

Please sign in to comment.