@kirbydesign/designsystem 6.0.1 → 6.0.2-beta.0
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/button/button.component.mjs +2 -2
- package/esm2020/lib/components/card/card-footer/card-footer.component.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/fab-sheet/fab-sheet.component.mjs +2 -2
- package/esm2020/lib/components/flag/flag.component.mjs +2 -2
- package/esm2020/lib/components/form-field/input/input.component.mjs +2 -2
- package/esm2020/lib/components/form-field/textarea/textarea.component.mjs +2 -2
- package/esm2020/lib/components/list/list-item/list-item.component.mjs +2 -2
- package/esm2020/lib/components/list/list.component.mjs +2 -2
- 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/lib/components/slide-button/slide-button.component.mjs +2 -2
- 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 +54 -33
- 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 +54 -33
- package/fesm2020/kirbydesign-designsystem.mjs.map +1 -1
- 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 +1 -1
- package/readme.md +5 -37
- package/scss/_trigger-publish.scss +1 -0
- package/scss/_trigger.scss +1 -0
- package/scss/awesome-stylesheet.scss +1 -0
- package/scss/base/_awesome-partial.scss +1 -0
- package/scss/base/_index.scss +1 -0
- package/scss/base/_interaction-states.scss +1 -0
- package/scss/base/_link.scss +1 -0
- package/scss/base/index.scss +1 -0
- package/scss/interaction-state/_active.scss +1 -0
- package/scss/interaction-state/_focus.scss +1 -0
- package/scss/interaction-state/_hover.scss +1 -0
- package/scss/interaction-state/_index.scss +1 -0
- package/scss/interaction-state/_interaction-state.utilities.scss +1 -0
- package/scss/interaction-state/_layer.scss +1 -0
- package/scss/interaction-state/_state-layer.scss +1 -0
- package/scss/interaction-state/_utilities.scss +1 -0
- package/scss/interaction-state/ionic/_active.scss +1 -0
- package/scss/interaction-state/ionic/_hover.scss +1 -0
- package/scss/interaction-state/ionic/_index.scss +1 -0
- package/scss/interaction-states/_hover.scss +1 -0
- package/scss/interaction-states/_index.scss +1 -0
- package/scss/opt-out/_index.scss +1 -0
- package/scss/opt-out/_link.scss +1 -0
- package/src/lib/components/icon/README.md +16 -0
- package/testing-base/lib/components/mock.page.component.d.ts +2 -1
- package/README.md +0 -7
|
@@ -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
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/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/trigger-publish";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/trigger";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/awesome-stylesheet";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/base/awesome-partial";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/base";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/base/interaction-states";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/base/link";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/base";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/active";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/focus";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/hover";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/interaction-state.utilities";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/layer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/state-layer";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/utilities";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/ionic/active";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/ionic/hover";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-state/ionic";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-states/hover";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/interaction-states";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/opt-out";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@forward "~@kirbydesign/core/scss/opt-out/link";
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# Add new icons
|
|
2
|
+
|
|
3
|
+
To add new icons, you should use the [icomoon app](https://icomoon.io).
|
|
4
|
+
|
|
5
|
+
## Generate font from svg's
|
|
6
|
+
|
|
7
|
+
1. Upload selection.json to get existing icons and settings
|
|
8
|
+
2. Upload new icons
|
|
9
|
+
3. Download Font
|
|
10
|
+
|
|
11
|
+
## Update kirby icons
|
|
12
|
+
|
|
13
|
+
1. Replace src/kirby/icon/selection.json, with newly generated selection.json
|
|
14
|
+
2. Replace src/fonts/kirby.ttf, with newly generated kirby.ttf
|
|
15
|
+
3. Update kirby-custom-icon-settings.ts with new icons (old icons should not have changed)
|
|
16
|
+
4. Add new icon svg's to src/assets/icons/kirby
|
|
@@ -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 {};
|