Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V13 #1149

Open
wants to merge 79 commits into
base: next
Choose a base branch
from
Open

V13 #1149

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
79 commits
Select commit Hold shift + click to select a range
9d5c267
feat(steps): add new component
hirsch88 Feb 8, 2023
f80e468
docs: add new steps
hirsch88 Feb 8, 2023
88b0bea
chore: format files
hirsch88 Feb 9, 2023
5b04fa3
test(steps): add functional and e2e test
hirsch88 Feb 13, 2023
f8592ed
docs: add test commands with signature
hirsch88 Feb 13, 2023
8f0ff2e
test(steps): wait for component to be fully loaded
hirsch88 Feb 13, 2023
fb4f54a
chore: format files
hirsch88 Feb 13, 2023
f44d4bf
test(steps): hide carousel events
hirsch88 Feb 13, 2023
693d61e
chore(): update base images
hirsch88 Feb 13, 2023
ad8d55c
chore: trigger build
hirsch88 Feb 13, 2023
edd2f19
chore: replace px with rem
hirsch88 Feb 13, 2023
b43c773
style: adjust center position of the step circle
hirsch88 Feb 14, 2023
7d91adb
feat: update to stencil v3
hirsch88 Feb 16, 2023
aa90891
test: adjust to stencil v3
hirsch88 Feb 16, 2023
3598b8b
chore: adjust types imports
hirsch88 Feb 16, 2023
65f2e90
fix: adjust types
hirsch88 Feb 16, 2023
e9483bd
chore: remove file not used
hirsch88 Feb 16, 2023
29617ab
Merge pull request #1145 from baloise-incubator/deps/update-2023-02
hirsch88 Feb 16, 2023
e8bea84
chore(): update base images
hirsch88 Feb 16, 2023
0618c1b
refactor: remove deprecated
hirsch88 Feb 16, 2023
4639e18
refactor(angular): remove non tree shaking component modules.
hirsch88 Feb 17, 2023
ad8459c
chore: adjust exports
hirsch88 Feb 17, 2023
c001e3c
test: remove unused tests
hirsch88 Feb 17, 2023
49948b9
chore: trigger build
hirsch88 Feb 17, 2023
1ffa7f0
chore: add types
hirsch88 Feb 17, 2023
0e7a263
chore: add types
hirsch88 Feb 17, 2023
a9f643e
chore: first draft
hirsch88 Feb 18, 2023
5baba84
chore: first draft
hirsch88 Feb 18, 2023
d14415e
chore: use original output type
hirsch88 Feb 18, 2023
f0e497a
chore: rename wrong type
hirsch88 Feb 18, 2023
713fad4
chore(): streamline events in form
mladenplaninicic Feb 23, 2023
b4ffb39
chore(): streamline events in form
mladenplaninicic Feb 24, 2023
2722f54
Merge pull request #1150 from baloise-incubator/13/deprecated-styles
hirsch88 Feb 27, 2023
770da08
chore: remove unused stuff
hirsch88 Feb 27, 2023
3edaa4e
Merge branch 'v13' into 13/ng-modules
hirsch88 Feb 27, 2023
6e4406e
chore: trigger build
hirsch88 Feb 27, 2023
874376a
chore(): remove deprecated click events
mladenplaninicic Feb 27, 2023
5ce2ac9
chore: update docs
hirsch88 Feb 27, 2023
8c0bd7f
Merge pull request #1151 from baloise-incubator/13/ng-modules
hirsch88 Feb 27, 2023
a3dde48
chore: merge next into v13
hirsch88 Feb 27, 2023
6042d2d
Merge pull request #1179 from baloise-incubator/13/next-update-1
hirsch88 Feb 27, 2023
0ea1451
chore: update branch
hirsch88 Feb 27, 2023
4d7259a
chore: fix import path
hirsch88 Feb 27, 2023
09d0bde
Merge pull request #1122 from baloise-incubator/1116-bal-tabs-refacto…
hirsch88 Feb 27, 2023
711d200
Merge pull request #1165 from baloise-incubator/1121-events-streamlin…
hirsch88 Feb 27, 2023
9410be3
chore(): types cleanup
mladenplaninicic Mar 1, 2023
dec137a
chore: update with next
hirsch88 Mar 3, 2023
3593bdf
chore: merge branch 'next' into v13
hirsch88 Mar 6, 2023
c9ece50
chore(): refactor
mladenplaninicic Mar 6, 2023
c0adf7a
chore(): refactor
mladenplaninicic Mar 6, 2023
43cb86a
chore: use new prop types in the table package
hirsch88 Mar 6, 2023
cfe0abb
chore: merge branch 'v13' into 13/types-cleanup
hirsch88 Mar 6, 2023
177a969
chore: merge branch 'v13' into 13/types-cleanup
hirsch88 Mar 6, 2023
2b0d226
chore: add changeset and adjust angular generation
hirsch88 Mar 6, 2023
3883e61
chore: change import
hirsch88 Mar 6, 2023
4010995
test: skip tabs test for now
hirsch88 Mar 6, 2023
f38af40
chore(): remove inverted property from bal-stage, bal-datepicker, bal…
mladenplaninicic Mar 6, 2023
e9af0f1
chore(): remove inverted
mladenplaninicic Mar 7, 2023
413445a
Merge pull request #1154 from baloise-incubator/13/types-cleanup
hirsch88 Mar 9, 2023
44439d8
chore: merge branch 'next' into v13
hirsch88 Mar 15, 2023
1205464
refactor: adjust event types
hirsch88 Mar 15, 2023
a5a006c
chore: clean up types
hirsch88 Mar 15, 2023
f60e028
chore: adjust build
hirsch88 Mar 15, 2023
325879e
fix: update stencil and adjust output order
hirsch88 Mar 15, 2023
61f2bac
Merge branch 'next' into v13
hirsch88 Mar 16, 2023
30023b6
chore: update lock file
hirsch88 Mar 16, 2023
3946ef0
chore: merge branch 'next' into v13
hirsch88 Mar 27, 2023
35388bb
chore: adjust old path
hirsch88 Mar 27, 2023
54ed0a2
chore: update build artifacts
hirsch88 Mar 27, 2023
b769826
test: adjust steps test
hirsch88 Mar 27, 2023
7709dc0
test: adjust html template
hirsch88 Mar 27, 2023
2b81146
chore: update types
hirsch88 Mar 27, 2023
de091e0
chore: revert
hirsch88 Mar 27, 2023
6671138
chore: disable generateTypeDeclarations
hirsch88 Mar 27, 2023
0a88aac
chore: enable cache
hirsch88 Mar 27, 2023
cd5658e
Add missing events (#1218)
mladenplaninicic Mar 27, 2023
1b4eac7
refactor(bal-tabs, bal-steps): separate components and improve animat…
hirsch88 Mar 28, 2023
c0d750a
V13-clean-nav (#1236)
hirsch88 Mar 28, 2023
d55338c
Chore-nav-update (#1239)
hirsch88 Apr 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
39 changes: 39 additions & 0 deletions .build/interfaces.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
/**
* interfaces
* --------------------------------------
* Adjust the reference path to the correct file.
*/

const path = require('path')
const replace = require('replace-in-file');
const log = require('./utils/log.js')

const DIRNAME = path.normalize(__dirname);
const PACKAGE = path.join(DIRNAME, "../packages/components");
const DIST_PATH = path.join(PACKAGE, 'dist/types')

async function main(){
log.title('interfaces')

adjustInterfacesReference(DIST_PATH + '/**/*interfaces.d.ts')
}

async function adjustInterfacesReference(files){
try {
replace.sync({
files: files,
from: `/// <reference path="../../../../src/interfaces.d.ts" />`,
to: `/// <reference path="../../../interfaces.d.ts" />`,
})
replace.sync({
files: files,
from: `/// <reference path="../../../src/interfaces.d.ts" />`,
to: `/// <reference path="../../interfaces.d.ts" />`,
})
}
catch (error) {
log.warn('Could not adjust interface references to dist output', error)
}
}

main()
5 changes: 5 additions & 0 deletions .changeset/cuddly-beans-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/design-system-components': minor
---

add border property to bal-carousel
28 changes: 28 additions & 0 deletions .changeset/famous-bees-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
'@baloise/design-system-components': major
---

Property and event types are global types and available with `BalProps` or `BalEvents`.
The target of the event is now also defined.

**before**

```typescript
import type { Events } from "@baloise/design-system-components"

const onChange = (event: Events.BalAccordionChange) => {
const myAccordion = event.target // type => EventTarget
const myDetail = event.detail // type => boolean
...
}
```

**after**

```typescript
const onChange = (event: BalEvents.BalAccordionChange) => {
const myAccordion = event.target // type => HTMLBalAccordion
const myDetail = event.detail // type => boolean
...
}
```
31 changes: 31 additions & 0 deletions .changeset/gold-ravens-change.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
'@baloise/design-system-components': major
---

scroll handler blocks scrolling now with JS instead of CSS.
With that we are able to remember the last scroll position of the user.

**before**

```typescript
const scrollHandler = BodyScrollBlocker()
this.bodyScrollBlocker.block()
this.bodyScrollBlocker.allow()
```

**after**

Rename the handler to `ScrollHandler` and call the `connect` function to
connect the handler to the target element (Default is document). `block` and `allow` have been
renamed to `disable` and `enable`. The new function `disconnect` removes all
the defined event listeners and resets the handler.

```typescript
const scrollHandler = ScrollHandler()

// can also pass in a custom element instead of using document
scrollHandler.connect()
scrollHandler.disable()
scrollHandler.enable()
scrollHandler.disconnect()
```
23 changes: 23 additions & 0 deletions .changeset/healthy-mugs-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
'@baloise/design-system-components': major
---

The namespaces Props and Events are renamed to BalProps and BalEvents.
As long as the packages `@baloise/design-system-components` is imported into your project
you have direct access to the new namespaces.

**before**

```typescript
import { Props } from '@baloise/design-system-components'

const myColor: Props.BalButtonColor = 'primary'
```

**after**

```typescript
const myColor: BalProps.BalButtonColor = 'primary'
```

All component types are now located in the component folders `*.interfaces.ts` file.
5 changes: 5 additions & 0 deletions .changeset/honest-windows-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/design-system-components': minor
---

add new steps component with options property and overflow solution
5 changes: 5 additions & 0 deletions .changeset/modern-maps-repair.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@baloise/design-system-components': major
---

update to stencil v3
16 changes: 16 additions & 0 deletions .changeset/short-zebras-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
'@baloise/design-system-components': major
---

Remove inverted property from bal-stage, bal-datepicker, bal-input, bal-textarea.

Inverted property is removed because is not supported in our new rebranded style.

Components that are affected are:

| Component | Property |
| :--------- | :------- |
| bal-stage | inverted |
| bal-datepicker| inverted |
| bal-input | inverted |
| bal-textarea | inverted |
46 changes: 46 additions & 0 deletions .changeset/tender-teachers-sell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
'@baloise/design-system-components-angular': major
---

Remove Angular component modules, because of Zone.js optimization.
Tree-shaking is given by stencil and therefor to have Angular component modules
does not have any advantages anymore.

**before**

```typescript
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { AppComponent } from './app.component'
import { BalCoreModule, BalHeadingModule, BalButtonModule } from '@baloise/design-system-components-angular'

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, BalCoreModule.forRoot(), BalHeadingModule, BalButtonModule],
providers: [],
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
```

**after**

Import the new module `BaloiseDesignSystemModule`, which adds all the components.
After remove all old component modules like `BalButtonModule` from your project.

```typescript
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { AppComponent } from './app.component'
import { BaloiseDesignSystemModule } from '@baloise/design-system-components-angular'

@NgModule({
declarations: [AppComponent],
imports: [BrowserModule, BaloiseDesignSystemModule.forRoot()],
providers: [],
bootstrap: [AppComponent],
schemas: [CUSTOM_ELEMENTS_SCHEMA],
})
export class AppModule {}
```
6 changes: 0 additions & 6 deletions CHANGELOG_NEXT.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,18 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

## [10.24.9](https://github.com/baloise-incubator/design-system/compare/v10.24.8...v10.24.9) (2022-10-11)


### Features

* **bal-navigation:** added the target attr for meta and main tabs ([c252771](https://github.com/baloise-incubator/design-system/commit/c252771fad01be7436cdb042a9f2efdd10634d11))



## [10.24.8](https://github.com/baloise-incubator/design-system/compare/v10.24.7...v10.24.8) (2022-10-11)


### Features

* **bal-navigation-menu-list-item:** added the target attr for grey menu list headline ([ddc8339](https://github.com/baloise-incubator/design-system/commit/ddc8339de57fd27bae24d41f3a2bac022b0ab08c))
* **bal-navigation-menu-list-item:** added the target attribute for items from grey lists ([773362e](https://github.com/baloise-incubator/design-system/commit/773362e2f1face1585ecbeae0c41ab0413900030))


### Bug Fixes

* adjust small spacing value to 0.75rem. Closes [#706](https://github.com/baloise-incubator/design-system/issues/706) ([2bdc29a](https://github.com/baloise-incubator/design-system/commit/2bdc29af2ed232d871a73ec5f754c49f77dceb97))
Expand Down Expand Up @@ -143,7 +139,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
* verify if window object exist when checking if current browser is Safari ([e3239d3](https://github.com/baloise-incubator/design-system/commit/e3239d3eaf704f477e1495e7fd9848bf13beed25))



## [10.24.1](https://github.com/baloise-incubator/design-system/compare/v10.24.0...v10.24.1) (2022-10-03)


Expand All @@ -160,7 +155,6 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

* **list:** synchronices the accrodion bodies is set ([f6bd2e5](https://github.com/baloise-incubator/design-system/commit/f6bd2e57cba71983bf97abd11d3541db75c6ea39))


### Bug Fixes

* **bal-pagination:** add prop to disable controls and dots for context small ([#662](https://github.com/baloise-incubator/design-system/issues/662)) ([e684bd0](https://github.com/baloise-incubator/design-system/commit/e684bd02413fe165e1107b92f7a5c02e8a2b0c35))
Expand Down
3 changes: 0 additions & 3 deletions CHANGELOG_OLD.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,14 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

### 10.13.4 (2022-06-23)


### [10.13.5](https://github.com/baloise/design-system/compare/v10.13.4...v10.13.5) (2022-07-05)

### Bug Fixes

* claim number formatter can accept small x and transfer it uppercase ([4b4b3e7](https://github.com/baloise/design-system/commit/4b4b3e7d43427e41ae39cc185042e5c6680a0c0c))


### [10.13.4](https://github.com/baloise/design-system/compare/v10.13.3...v10.13.4) (2022-06-23)


### Bug Fixes

* **testing:** update deps ([e55e44d](https://github.com/baloise/design-system/commit/e55e44ddc17b503f1a99275dd6070130cfc4bc81))
Expand Down
2 changes: 0 additions & 2 deletions CHANGELOG_v12.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@ Follow the migration guide [Migration from 11.x to 12.x](https://baloise-design-

## [11.0.11](https://github.com/baloise-incubator/design-system/compare/v11.0.10...v11.0.11) (2022-11-03)


### Performance Improvements

* lazy load component styles ([53ea546](https://github.com/baloise-incubator/design-system/commit/53ea5460bd46e1a4525fccccdd5c039cad8938eb))
Expand All @@ -124,7 +123,6 @@ Follow the migration guide [Migration from 11.x to 12.x](https://baloise-design-

* remove source maps ([9ac37b1](https://github.com/baloise-incubator/design-system/commit/9ac37b13e4d634d43b51c4467e7174249f542c31))


### Performance Improvements

* lazy load component styles ([2f90efe](https://github.com/baloise-incubator/design-system/commit/2f90efe0d920c2bb9ab4db54ca2b89b43f6ea33c))
Expand Down
Loading