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

Release version 6.0.0 #2337

Merged
merged 91 commits into from
Jun 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
008a771
Add "backgroundImageUrl" and custom css properties for controlling ba…
MadsBuchmann Feb 21, 2022
7fb3319
:clown_face: Add missing input properties to mocks (#2084)
MadsBuchmann Mar 3, 2022
67472ff
Make it possible to use time scale as a custom option for chart (#2082)
troelslenda Mar 4, 2022
5c9ca91
:memo: Remove big Kirby v1 notice (#2086)
MadsBuchmann Mar 4, 2022
022d7e4
:sparkles: Allow usePopover to be turned on in calendar (#2102)
MadsBuchmann Mar 14, 2022
86b7a23
:memo: Fix dead links to annotation plugin docs (#2110)
MadsBuchmann Mar 17, 2022
886c2a4
🐛 Push scaling of header to next cycle (#2111)
RasmusKjeldgaard Mar 17, 2022
1bff549
:arrow_up: Bump follow-redirects from 1.14.7 to 1.14.8 (#2049)
dependabot[bot] Mar 17, 2022
8f6a993
:arrow_up: Bump prismjs from 1.25.0 to 1.27.0 (#2070)
dependabot[bot] Mar 17, 2022
443a3ae
:arrow_up: Bump url-parse from 1.5.3 to 1.5.10 (#2071)
dependabot[bot] Mar 17, 2022
334a645
🔖Bumping version to 5.2.0 (designsystem)
RasmusKjeldgaard Mar 17, 2022
b3d4239
Merge remote-tracking branch 'origin/stable'
jkaltoft Mar 17, 2022
1147260
Remove deprecated chart components & highcharts dependencies (#2069)
MadsBuchmann Feb 28, 2022
c3ddca6
Add subtitle to page-title (#2030)
mictro Mar 4, 2022
5d3d356
:bug: Reintroduce accidentally removed module import (#2126)
MadsBuchmann Mar 24, 2022
ecb46e6
Merge branch 'main' into release/v6.0.0
RasmusKjeldgaard Mar 28, 2022
3bb9dfa
Revert "Remove deprecated chart components & highcharts dependencies …
MadsBuchmann Mar 29, 2022
4964f07
Update Angular to v12 (#2140)
RasmusKjeldgaard Mar 31, 2022
a14fea3
Calculate UTC offset based on correct date (#2115)
RasmusKjeldgaard Apr 1, 2022
6ebc263
Upgrade prettier and stylelint (#2146)
RasmusKjeldgaard Apr 1, 2022
1aee12c
Allow non-enum Input in components: template literal type solution (#…
MadsBuchmann Apr 4, 2022
97e99d0
Add unit back on item safe area custom property (#2160)
RasmusKjeldgaard Apr 4, 2022
85c51a3
Merge branch 'stable'
RasmusKjeldgaard Apr 5, 2022
f1436e1
Merge remote-tracking branch 'origin/main' into release/v6.0.0
RasmusKjeldgaard Apr 5, 2022
ee02617
Add badge mock and update line-endings for page mock (#2170)
RasmusKjeldgaard Apr 19, 2022
f906f40
Remove option to inject IconSettings via IconRegistryService construc…
RasmusKjeldgaard Apr 20, 2022
51a767c
Remove deprecated okBtnText and cancelBtnText from AlertConfig (#2175)
RasmusKjeldgaard Apr 21, 2022
6b1c587
🔥 Remove deprecated dim property on ModalConfig (#2177)
RasmusKjeldgaard Apr 21, 2022
73df668
:fire: Remove deprecated 'dataLabels' property (#2178)
MadsBuchmann Apr 21, 2022
16e2b6d
Remove deprecated toast danger MessageType (#2181)
RasmusKjeldgaard Apr 22, 2022
ede2183
Remove deprecated list directives (#2184)
RasmusKjeldgaard Apr 22, 2022
7d2088d
Merge remote-tracking branch 'origin/stable' into release/v6.0.0
jkaltoft Apr 25, 2022
8a4a0a1
OnPush change detection for simplest components (#2169)
RasmusKjeldgaard Apr 26, 2022
dcd1d56
⏪ Fix messed up merge commit again
jkaltoft Apr 27, 2022
5579c0d
Remove checked property from SegmentItem (#2190)
RasmusKjeldgaard Apr 27, 2022
1f0a046
Add "collapsibleTitle" field to modal config (#2174)
MadsBuchmann Apr 28, 2022
90a5ccd
Fix slow hot reloading (#2208)
MadsBuchmann May 3, 2022
90411de
Remove cookbook-e2e app & helm charts (#2209)
MadsBuchmann May 3, 2022
a343e17
Merge remote-tracking branch 'origin/main' into release/v6.0.0
jkaltoft May 4, 2022
82061ee
Add migration notes for v6 (#2221)
RasmusKjeldgaard May 4, 2022
ca72f70
Merge branch 'main' into release/v6.0.0
jkaltoft May 16, 2022
813712f
Merge branch 'main' into release/v6.0.0
jkaltoft May 19, 2022
3dc15bb
Angular 13
andershessellund May 23, 2022
972c700
Fix sass-to-ts plugin
andershessellund May 23, 2022
7b2ea65
Fix cookbook for webpack 5
andershessellund May 23, 2022
8d37935
Merge pull request #2284 from kirbydesign/angular-13
RasmusKjeldgaard May 24, 2022
44f193e
💚 Serve cookbook correctly via package.json scripts
RasmusKjeldgaard May 24, 2022
abd167f
🔥 Remove unused testing scripts
RasmusKjeldgaard May 24, 2022
0e30ae3
Merge branch 'main' into release/v6.0.0
jkaltoft May 24, 2022
efa2646
Merge pull request #2292 from kirbydesign/housekeeping/fix-default-pr…
RasmusKjeldgaard May 24, 2022
2cc7fb0
♻️ Use math.div instead of slash for division
jkaltoft May 25, 2022
a3ce57f
Merge pull request #2294 from kirbydesign/feature/2225-migrate-sass-d…
jkaltoft May 25, 2022
4b9df13
Merge branch 'main' into release/v6.0.0
jkaltoft May 25, 2022
ea28e8c
Change arrow icons
May 29, 2022
6e3381f
Add pension icons
May 29, 2022
423dfc3
Merge pull request #2299 from kirbydesign/enhancement/2270-pension-icons
mictro May 31, 2022
24b0ed9
Merge branch 'develop' into enhancement/2271-replace-arrow-icons
mictro May 31, 2022
6cb485c
Merge pull request #2298 from kirbydesign/enhancement/2271-replace-ar…
mictro May 31, 2022
9567267
⚰️ Remove icon substitution logic in FAB sheet
RasmusKjeldgaard May 31, 2022
679d2c5
Merge pull request #2302 from kirbydesign/housekeeping/remove-fab-she…
RasmusKjeldgaard May 31, 2022
a4b6538
:arrow_up: Bump eventsource from 1.1.0 to 1.1.1
dependabot[bot] Jun 1, 2022
1a53504
Add SCSS files to exports in package.json
andershessellund Jun 1, 2022
38da5d0
Change size of icon on icon-only buttons
Jun 1, 2022
027eaba
📝 Add extra scss migration notes
RasmusKjeldgaard Jun 1, 2022
3538ff6
Merge pull request #2304 from kirbydesign/add-scss-to-exports
RasmusKjeldgaard Jun 1, 2022
deb077c
Merge pull request #2303 from kirbydesign/dependabot/npm_and_yarn/eve…
RasmusKjeldgaard Jun 1, 2022
edb81ab
Merge branch 'develop' into enhancement/2245-small-button-with-icon-o…
mictro Jun 2, 2022
ea0773c
:arrow_up: Bump protobufjs from 6.10.2 to 6.11.3
dependabot[bot] Jun 2, 2022
e5a1c1b
Merge pull request #2306 from kirbydesign/enhancement/2245-small-butt…
mictro Jun 3, 2022
3df7feb
Make quick PoC
jkaltoft Jun 7, 2022
c6c78c0
💄 Streamline, clean up and handle .borderless
jkaltoft Jun 7, 2022
73dac3f
Use import instead of require for highcharts
andershessellund Jun 8, 2022
bcf8cc9
Merge pull request #2315 from kirbydesign/use-import-instead-of-require
RasmusKjeldgaard Jun 8, 2022
a0c6175
Merge branch 'develop' into dependabot/npm_and_yarn/protobufjs-6.11.3
RasmusKjeldgaard Jun 8, 2022
be2579b
✅ Modify test expectations to match applied changes
jkaltoft Jun 8, 2022
0ba683b
💄 Adjust padding on input with border
jkaltoft Jun 8, 2022
89ac50a
💄 Use variable for md size padding
jkaltoft Jun 8, 2022
0ee16c1
Merge pull request #2310 from kirbydesign/dependabot/npm_and_yarn/pro…
RasmusKjeldgaard Jun 8, 2022
08e9ac9
Merge branch 'develop' into bug/2301-quickfix-for-input-field-styles
jkaltoft Jun 8, 2022
88e5adc
Add clarifying comment
jkaltoft Jun 8, 2022
cc2c552
Fix "Identifier 'exports' has already been declared"
Jun 9, 2022
dd1186e
Merge pull request #2318 from kirbydesign/exports-has-already-been-de…
Jun 9, 2022
126e939
Merge pull request #2314 from kirbydesign/bug/2301-quickfix-for-input…
jkaltoft Jun 9, 2022
3ef5c39
Remove deep copy dependency
andershessellund Jun 13, 2022
3c6a085
Merge pull request #2330 from kirbydesign/remove-deep-copy-dep
RasmusKjeldgaard Jun 13, 2022
044da81
:clown_face: Add 'disableChangeOnSwipe' to segmentedControl mock
MadsBuchmann Jun 14, 2022
9a2e76a
Merge pull request #2332 from kirbydesign/housekeeping/xxxx-segmented…
MadsBuchmann Jun 14, 2022
d68b869
Merge remote-tracking branch 'origin/develop' into release/v6.0.0
jkaltoft Jun 14, 2022
357ba53
6.0.0
RasmusKjeldgaard Jun 15, 2022
4ede31c
Merge pull request #2193 from kirbydesign/release/v6.0.0
RasmusKjeldgaard Jun 15, 2022
2c86203
Merge branch 'main' into develop
RasmusKjeldgaard Jun 15, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
!.vscode/extensions.json

# misc
/.angular/cache
/.sass-cache
/connect.lock
/coverage
Expand Down
123 changes: 123 additions & 0 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
# Migrations

This document provides information about breaking changes and their migrations for major versions of Kirby Design System.

- [Version 6](#version-6)
- [Platform Support](#platform-support)
- [Components](#components)
- [Alert](#alert)
- [Chart](#chart)
- [Icons](#icons)
- [List](#list)
- [Modal](#modal)
- [Page](#page)
- [Segmented Control](#segmented-control)
- [Toast](#toast)
- [Additional Performance notice](#additional-performance-notice)

## Version 6

### Platform Support

From v6 and onwards, Kirby no longer supports Angular projects using the Legacy View Engine. Applications already using Ivy should see no differences other than Kirby not needing an additional compile-step on their side via `ngcc`.

### Styles

`global-styles` and `utils` are now the only modules that can be loaded from `~@kirbydesign/designsystem/scss`.
This means that modules like `~@kirbydesign/designsystem/scss/theme/colors` is no longer available as a standalone module, and should instead be changed to `~@kirbydesign/designsystem/scss/utils`,
which forwards all mixins and functions exposed by Kirby.

### Components

#### Alert

`okBtnText` and `cancelBtnText` of `AlertConfig` are removed, and the existing `okBtn` and `cancelBtn` should be used instead, as a direct replacement for these.

#### Chart

The `kirby-chart` input property `dataLabels` has been removed. Use `labels` (with a similar API) instead.

#### Icons

Use of `IconSettings` is deprecated, use `IconRegistryService` instead, as per the [icon documentation](https://cookbook.kirby.design/#/home/showcase/icon), as follows:

```
import { IconRegistryService } from '@kirbydesign/designsystem';

const customIcons = [
{
name: 'customIconName',
svg: '[PATH_TO_SVG_FILE]',
},
...
];

@NgModule({ ... } )
export class MyModule {
constructor(iconRegistryService: IconRegistryService) {
iconRegistryService.addIcons(customIcons);
}
}
```

#### List

`*kirbyListItem` and `*kirbyListFlexItem` is replaced in favor of the `*kirbyListItemTemplate` directive.

#### Modal

The `dim` field of the `ModalConfig` interface has been removed.

The `title` field of the `ModalConfig` interface has been removed. Instead, you should include a `<kirby-page-title>` element inside the embedded component markup with the title of your modal.

```
<kirby-page-title>My Modal Title</kirby-page-title>

<p>Some content of the embedded component</p>
```

See the [modal documentation](https://cookbook.kirby.design/#/home/showcase/modal) for more examples of this.

#### Page

The current spacing below custom titles (title elements with the `*kirbyPageTitle` directive) has been removed.
In cases where a text block immediately following the title heading within a custom title element has lost its intended spacing, the text should be moved to the new custom subtitle element (`*kirbyPageSubtitle`).

#### Segmented Control

It is no longer an option to mark a `SegmentItem` as `checked` when provided in the items input of `SegmentedControl`.
Use `selectedIndex` or `value` on `<kirby-segmented-control>` instead.

#### Toast

The `danger` variant of `MessageType` has been removed. Use Kirby Alert for critical events instead.

### Additional Performance notice

To improve the general performance of Kirby components, `OnPush` change detection has been enabled on a lot of the simpler components.

This is not a breaking change, as it has only been carried out for components that should be robust to this change because they have immutable inputs. Even though it has been tested thoroughly there might be edge cases or unforeseen consequences related to this change so please be aware that the following components now utilise OnPush change detection:

- `kirby-app`
- `kirby-button`
- `kirby-card-header`
- `kirby-card-footer`
- `kirby-chip`
- `kirby-divider`
- `kirby-empty-state`
- `kirby-fab-sheet`
- `kirby-icon`
- `kirby-item-component`
- `kirby-list-experimental`
- `kirby-list-header`
- `kirby-list-section-header`
- `kirby-loading-overlay`
- `kirby-alert`
- `kirby-modal-footer`
- `kirby-page-footer`
- `kirby-radio`
- `kirby-range`
- `kirby-router-outlet`
- `kirby-section-header`
- `kirby-spinner`
- `kirby-toggle`
131 changes: 38 additions & 93 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,47 +2,6 @@
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"projects": {
"designsystem": {
"projectType": "library",
"root": "libs/designsystem",
"sourceRoot": "libs/designsystem/src",
"prefix": "kirby",
"architect": {
"build": {
"builder": "@nrwl/angular:package",
"options": {
"tsConfig": "libs/designsystem/tsconfig.lib.json",
"project": "libs/designsystem/ng-package.json",
"updateBuildableProjectDepsInPackageJson": false
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"libs/designsystem/tsconfig.lib.json",
"libs/designsystem/tsconfig.spec.json"
],
"exclude": ["**/node_modules/**", "!libs/designsystem/**/*"]
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "libs/designsystem/src/test.ts",
"tsConfig": "libs/designsystem/tsconfig.spec.json",
"karmaConfig": "libs/designsystem/karma.conf.js",
"styles": ["libs/designsystem/src/lib/testing/styles.scss"]
},
"outputs": ["coverage/libs/designsystem"]
}
},
"schematics": {
"@nrwl/angular:component": {
"styleext": "scss"
}
}
},
"cookbook": {
"projectType": "application",
"schematics": {
Expand Down Expand Up @@ -72,7 +31,6 @@
"main": "apps/cookbook/src/main.ts",
"polyfills": "apps/cookbook/src/polyfills.ts",
"tsConfig": "apps/cookbook/tsconfig.app.json",
"aot": false,
"assets": [
"apps/cookbook/src/favicon.ico",
"apps/cookbook/src/assets",
Expand All @@ -96,21 +54,23 @@
"scripts": []
},
"configurations": {
"development": {
"optimization": false,
"aot": false,
"buildOptimizer": false,
"sourceMap": true,
"extractLicenses": false,
"namedChunks": true,
"vendorChunk": true
},
"production": {
"fileReplacements": [
{
"replace": "apps/cookbook/src/environments/environment.ts",
"with": "apps/cookbook/src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"budgets": [
{
"type": "initial",
Expand All @@ -129,7 +89,7 @@
"serve": {
"builder": "@angular-builders/custom-webpack:dev-server",
"options": {
"browserTarget": "cookbook:build"
"browserTarget": "cookbook:build:development"
},
"configurations": {
"production": {
Expand All @@ -143,13 +103,6 @@
"browserTarget": "cookbook:build"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": ["apps/cookbook/tsconfig.app.json", "apps/cookbook/tsconfig.spec.json"],
"exclude": ["**/node_modules/**", "!apps/cookbook/**/*"]
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
Expand All @@ -163,48 +116,40 @@
},
"outputs": ["coverage/apps/cookbook"]
}
}
},
"tags": []
},
"cookbook-e2e": {
"root": "apps/cookbook-e2e",
"sourceRoot": "apps/cookbook-e2e/src",
"projectType": "application",
"designsystem": {
"projectType": "library",
"root": "libs/designsystem",
"sourceRoot": "libs/designsystem/src",
"prefix": "kirby",
"architect": {
"e2e": {
"builder": "@nrwl/cypress:cypress",
"build": {
"builder": "@nrwl/angular:package",
"options": {
"cypressConfig": "apps/cookbook-e2e/cypress.json",
"tsConfig": "apps/cookbook-e2e/tsconfig.e2e.json",
"devServerTarget": "cookbook:serve"
},
"configurations": {
"production": {
"devServerTarget": "cookbook:serve:production"
}
"tsConfig": "libs/designsystem/tsconfig.lib.json",
"project": "libs/designsystem/ng-package.json",
"updateBuildableProjectDepsInPackageJson": false
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"tsConfig": ["apps/cookbook-e2e/tsconfig.e2e.json"],
"exclude": ["**/node_modules/**", "!apps/cookbook-e2e/**/*"]
}
"main": "libs/designsystem/src/test.ts",
"tsConfig": "libs/designsystem/tsconfig.spec.json",
"karmaConfig": "libs/designsystem/karma.conf.js",
"styles": ["libs/designsystem/src/lib/testing/styles.scss"]
},
"outputs": ["coverage/libs/designsystem"]
}
}
}
},
"cli": {
"defaultCollection": "@nrwl/angular",
"analytics": false
},
"schematics": {
"@nrwl/angular:application": {
"unitTestRunner": "karma",
"e2eTestRunner": "cypress"
},
"@nrwl/angular:library": {
"unitTestRunner": "karma"
},
"schematics": {
"@nrwl/angular:component": {
"styleext": "scss"
}
},
"tags": []
}
},
"defaultProject": "designsystem"
}
}
12 changes: 0 additions & 12 deletions apps/cookbook-e2e/cypress.json

This file was deleted.

4 changes: 0 additions & 4 deletions apps/cookbook-e2e/src/fixtures/example.json

This file was deleted.

13 changes: 0 additions & 13 deletions apps/cookbook-e2e/src/integration/app.spec.ts

This file was deleted.

22 changes: 0 additions & 22 deletions apps/cookbook-e2e/src/plugins/index.js

This file was deleted.

1 change: 0 additions & 1 deletion apps/cookbook-e2e/src/support/app.po.ts

This file was deleted.

Loading