@kirbydesign/designsystem 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/chart/chart-js/configured-chart-js.mjs +2 -2
- package/esm2020/lib/components/chart/configs/annotations.config.mjs +1 -1
- package/esm2020/lib/components/dropdown/dropdown.component.mjs +15 -12
- package/esm2020/lib/components/flag/flag.component.mjs +2 -2
- package/esm2020/lib/components/icon/kirby-icon-settings.mjs +2 -1
- package/esm2020/lib/components/modal/modal-wrapper/modal-wrapper.component.mjs +3 -3
- package/esm2020/lib/components/page/page.component.mjs +21 -3
- package/esm2020/testing-base/lib/components/mock.page.component.mjs +5 -2
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs +4 -1
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem.mjs +40 -18
- package/fesm2015/kirbydesign-designsystem.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs +4 -1
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem.mjs +40 -18
- package/fesm2020/kirbydesign-designsystem.mjs.map +1 -1
- package/icons/svg/insurance.svg +5 -0
- package/lib/components/chart/configs/annotations.config.d.ts +1 -1
- package/lib/components/dropdown/dropdown.component.d.ts +2 -0
- package/lib/components/page/page.component.d.ts +4 -1
- package/package.json +2 -2
- package/readme.md +5 -37
- package/testing-base/lib/components/mock.page.component.d.ts +2 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
|
|
2
|
+
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
|
3
|
+
<path d="M17.5002556,9.824 C16.3866369,9.824 15.3920844,10.247 14.7497275,10.905 C14.1083712,10.247 13.1138187,9.824 12.0002,9.824 C10.8855808,9.824 9.89202879,10.247 9.24967193,10.905 C8.60831562,10.247 7.61476365,9.824 6.50014441,9.824 C5.88980534,9.824 5.31548627,9.951 4.81520834,10.174 C5.74172307,6.613 8.61231784,4.011 12.0002,4.011 C15.3880822,4.011 18.2586769,6.613 19.1851917,10.174 C18.6849137,9.951 18.1105947,9.824 17.5002556,9.824 M12.0002,2.5 C7.03744291,2.5 3.0002,7.055 3.0002,12.653 C3.0002,13.07 3.33638677,13.408 3.7506169,13.408 C4.16484703,13.408 4.5010338,13.07 4.5010338,12.653 C4.5010338,11.938 5.41654241,11.335 6.50014441,11.335 C7.58374641,11.335 8.49925503,11.938 8.49925503,12.653 C8.49925503,13.07 8.8354418,13.408 9.24967193,13.408 C9.66390206,13.408 10.0000888,13.07 10.0000888,12.653 C10.0000888,12.113 10.5253807,11.636 11.2497831,11.436 L11.247782,18.491 C11.247782,19.317 10.6454474,19.99 9.90603658,19.99 C9.16462468,19.99 8.56229005,19.317 8.56229005,18.491 C8.56229005,18.074 8.22610328,17.735 7.81187315,17.735 C7.39764302,17.735 7.06145625,18.074 7.06145625,18.491 C7.06145625,20.15 8.33716498,21.5 9.90603658,21.5 C11.4739076,21.5 12.7496163,20.15 12.7496163,18.491 L12.7506169,11.436 C13.4750193,11.636 13.9993106,12.113 13.9993106,12.653 C13.9993106,13.07 14.3354974,13.408 14.7497275,13.408 C15.1639576,13.408 15.5001444,13.07 15.5001444,12.653 C15.5001444,11.938 16.415653,11.335 17.5002556,11.335 C18.5838576,11.335 19.4993662,11.938 19.4993662,12.653 C19.4993662,13.07 19.835553,13.408 20.2497831,13.408 C20.6640132,13.408 21.0002,13.07 21.0002,12.653 C21.0002,7.055 16.9629571,2.5 12.0002,2.5" id="insurance" fill="currentColor" fill-rule="nonzero"></path>
|
|
4
|
+
</g>
|
|
5
|
+
</svg>
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnnotationTypeRegistry } from 'chartjs-plugin-annotation';
|
|
2
|
-
export declare const CHART_ANNOTATIONS_CONFIG: AnnotationTypeRegistry
|
|
2
|
+
export declare const CHART_ANNOTATIONS_CONFIG: Omit<AnnotationTypeRegistry, 'label' | 'polygon'>;
|
|
@@ -111,6 +111,8 @@ export declare class DropdownComponent implements AfterContentChecked, AfterView
|
|
|
111
111
|
_onMouseDown(event: MouseEvent): void;
|
|
112
112
|
_onFocus(): void;
|
|
113
113
|
_onPopoverWillHide(): void;
|
|
114
|
+
_onEnterOrEscape(): void;
|
|
115
|
+
_onPopoverClick(event: PointerEvent): void;
|
|
114
116
|
_onBlur(event?: FocusEvent): void;
|
|
115
117
|
_onSpace(event: KeyboardEvent): void;
|
|
116
118
|
_onEnter(event: KeyboardEvent): void;
|
|
@@ -93,10 +93,12 @@ export declare class PageComponent implements OnInit, OnDestroy, AfterViewInit,
|
|
|
93
93
|
enter: EventEmitter<void>;
|
|
94
94
|
leave: EventEmitter<void>;
|
|
95
95
|
refresh: EventEmitter<PullToRefreshEvent>;
|
|
96
|
+
backButtonClick: EventEmitter<Event>;
|
|
96
97
|
private content;
|
|
97
98
|
private ionContentElement;
|
|
98
99
|
ionHeaderElement: ElementRef<HTMLIonHeaderElement>;
|
|
99
100
|
private ionFooterElement;
|
|
101
|
+
private backButtonDelegate;
|
|
100
102
|
private pageTitle;
|
|
101
103
|
private simpleTitleTemplate;
|
|
102
104
|
private simpleToolbarTitleTemplate;
|
|
@@ -133,6 +135,7 @@ export declare class PageComponent implements OnInit, OnDestroy, AfterViewInit,
|
|
|
133
135
|
delegateRefreshEvent(event: any): void;
|
|
134
136
|
private onEnter;
|
|
135
137
|
private onLeave;
|
|
138
|
+
private interceptBackButtonClicksSetup;
|
|
136
139
|
private initializeTitle;
|
|
137
140
|
private initializeActions;
|
|
138
141
|
private initializeContent;
|
|
@@ -143,6 +146,6 @@ export declare class PageComponent implements OnInit, OnDestroy, AfterViewInit,
|
|
|
143
146
|
}): void;
|
|
144
147
|
_onKeyboardWillHide(): void;
|
|
145
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, [null, null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "kirby-page", never, { "title": "title"; "subtitle": "subtitle"; "toolbarTitle": "toolbarTitle"; "titleAlignment": "titleAlignment"; "defaultBackHref": "defaultBackHref"; "hideBackButton": "hideBackButton"; "titleMaxLines": "titleMaxLines"; "tabBarBottomHidden": "tabBarBottomHidden"; }, { "enter": "enter"; "leave": "leave"; "refresh": "refresh"; }, ["customToolbarTitleTemplate", "customTitleTemplate", "customSubtitleTemplate", "customActions", "customContent"], ["kirby-page-footer", "kirby-page-actions", "kirby-page-content"]>;
|
|
149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageComponent, "kirby-page", never, { "title": "title"; "subtitle": "subtitle"; "toolbarTitle": "toolbarTitle"; "titleAlignment": "titleAlignment"; "defaultBackHref": "defaultBackHref"; "hideBackButton": "hideBackButton"; "titleMaxLines": "titleMaxLines"; "tabBarBottomHidden": "tabBarBottomHidden"; }, { "enter": "enter"; "leave": "leave"; "refresh": "refresh"; "backButtonClick": "backButtonClick"; }, ["customToolbarTitleTemplate", "customTitleTemplate", "customSubtitleTemplate", "customActions", "customContent"], ["kirby-page-footer", "kirby-page-actions", "kirby-page-content"]>;
|
|
147
150
|
}
|
|
148
151
|
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirbydesign/designsystem",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@fontsource/roboto": "4.2.1",
|
|
6
6
|
"@ionic/angular": "5.5.2",
|
|
7
|
-
"@kirbydesign/core": "0.0.
|
|
7
|
+
"@kirbydesign/core": "0.0.28",
|
|
8
8
|
"chart.js": "3.3.2",
|
|
9
9
|
"chartjs-adapter-date-fns": "^2.0.0",
|
|
10
10
|
"chartjs-plugin-annotation": "^1.0.2",
|
package/readme.md
CHANGED
|
@@ -28,11 +28,9 @@ The Kirby Cookbook, containing samples, status of components etc. can be accesse
|
|
|
28
28
|
- [Migration Guides](#migration-guides)
|
|
29
29
|
- [Folder Structure](#folder-structure)
|
|
30
30
|
- [Scripts](#scripts)
|
|
31
|
-
- [Developing new features in Kirby](#developing-new-features-in-kirby)
|
|
32
|
-
- ["New feature"-process](#new-feature-process)
|
|
33
|
-
- [Testing new features](#testing-new-features)
|
|
34
31
|
- [Polyfills](#polyfills)
|
|
35
32
|
- [Chart Components](#chart-components)
|
|
33
|
+
- [Contributing](#contributing)
|
|
36
34
|
|
|
37
35
|
## Installation
|
|
38
36
|
|
|
@@ -184,40 +182,6 @@ Use them in your terminal like: `npm run <script>` :
|
|
|
184
182
|
| dist:designsystem | Builds a distribution folder of the Designsystem library |
|
|
185
183
|
| transpile:tools | Transpiles tools, required to produce library distribution (this is done as a `post-install` hook, but may have value if altering tool implementation) |
|
|
186
184
|
|
|
187
|
-
## Developing new features in Kirby
|
|
188
|
-
|
|
189
|
-
When developing new features in the Kirby Designsystem library, please follow the process described below:
|
|
190
|
-
|
|
191
|
-
### "New feature"-process
|
|
192
|
-
|
|
193
|
-
TBD
|
|
194
|
-
|
|
195
|
-
### Testing new features
|
|
196
|
-
|
|
197
|
-
Developing new features should also include that they should be tested.
|
|
198
|
-
|
|
199
|
-
1. Make sure that the code is unit tested.
|
|
200
|
-
2. Make sure that examples and showcases are added for the new features (in the cookbook)
|
|
201
|
-
|
|
202
|
-
... this will also act as documentation for users of the Designsystem library.
|
|
203
|
-
|
|
204
|
-
3. Test the new features in your own application
|
|
205
|
-
|
|
206
|
-
The easiest way to do this is to build a distribution package, and install it in your own project.
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
# 1. From the root of this repository, run (this may take a minute or two):
|
|
210
|
-
npm run publish
|
|
211
|
-
|
|
212
|
-
# Then, from the root of your application, execute:
|
|
213
|
-
npm i <path-to-root-of-designsystem>/dist/kirbydesign-designsystem-<version>.tgz
|
|
214
|
-
|
|
215
|
-
# ... where <path-to-root-of-designsystem> is replaced with the real path
|
|
216
|
-
# and <version> is the version of designsystem that was build (in the previous step)
|
|
217
|
-
|
|
218
|
-
# You do NOT want to commit the changes made to package.json and package-lock.json to your code base!
|
|
219
|
-
```
|
|
220
|
-
|
|
221
185
|
## Polyfills
|
|
222
186
|
|
|
223
187
|
Some features of Kirby requires polyfills to ensure compability across all major browsers _(e.g. the `ResizeObserverService` used by the automagic sizing feature of the `Kirby Card` component)_.
|
|
@@ -260,6 +224,10 @@ _**Please note:** If you don't want the additional http request for the polyfill
|
|
|
260
224
|
|
|
261
225
|
The Kirby chart components use Highcharts. Note that this is a licensed product.
|
|
262
226
|
|
|
227
|
+
## Contributing
|
|
228
|
+
|
|
229
|
+
If you wish to contribute new features, bug fixes or something third to the project have a look at the [contribution guidelines](./github/CONTRIBUTING.md).
|
|
230
|
+
|
|
263
231
|
[angular]: https://angular.io
|
|
264
232
|
[jasmine]: https://jasmine.github.io/
|
|
265
233
|
[jest]: https://jestjs.io/
|
|
@@ -57,7 +57,8 @@ export declare class MockPageComponent {
|
|
|
57
57
|
enter: EventEmitter<void>;
|
|
58
58
|
leave: EventEmitter<void>;
|
|
59
59
|
refresh: EventEmitter<PullToRefreshEvent>;
|
|
60
|
+
backButtonClick: EventEmitter<Event>;
|
|
60
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<MockPageComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MockPageComponent, "kirby-page", never, { "title": "title"; "subtitle": "subtitle"; "toolbarTitle": "toolbarTitle"; "titleAlignment": "titleAlignment"; "defaultBackHref": "defaultBackHref"; "hideBackButton": "hideBackButton"; "titleMaxLines": "titleMaxLines"; "tabBarBottomHidden": "tabBarBottomHidden"; }, { "enter": "enter"; "leave": "leave"; "refresh": "refresh"; }, never, ["*"]>;
|
|
62
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MockPageComponent, "kirby-page", never, { "title": "title"; "subtitle": "subtitle"; "toolbarTitle": "toolbarTitle"; "titleAlignment": "titleAlignment"; "defaultBackHref": "defaultBackHref"; "hideBackButton": "hideBackButton"; "titleMaxLines": "titleMaxLines"; "tabBarBottomHidden": "tabBarBottomHidden"; }, { "enter": "enter"; "leave": "leave"; "refresh": "refresh"; "backButtonClick": "backButtonClick"; }, never, ["*"]>;
|
|
62
63
|
}
|
|
63
64
|
export {};
|