@kirbydesign/designsystem 6.0.2-beta.0 → 6.0.3
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/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 +12 -15
- 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/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 +3 -21
- package/esm2020/testing-base/lib/components/mock.page.component.mjs +2 -5
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs +1 -4
- package/fesm2015/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2015/kirbydesign-designsystem.mjs +28 -49
- package/fesm2015/kirbydesign-designsystem.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs +1 -4
- package/fesm2020/kirbydesign-designsystem-testing-base.mjs.map +1 -1
- package/fesm2020/kirbydesign-designsystem.mjs +28 -49
- 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 +0 -2
- package/lib/components/page/page.component.d.ts +1 -4
- package/package.json +1 -1
- package/readme.md +37 -5
- package/testing-base/lib/components/mock.page.component.d.ts +1 -2
- package/scss/_trigger-publish.scss +0 -1
- package/scss/_trigger.scss +0 -1
- package/scss/awesome-stylesheet.scss +0 -1
- package/scss/base/_awesome-partial.scss +0 -1
- package/scss/base/_index.scss +0 -1
- package/scss/base/_interaction-states.scss +0 -1
- package/scss/base/index.scss +0 -1
- package/scss/interaction-state/_state-layer.scss +0 -1
- package/scss/interaction-state/_utilities.scss +0 -1
- package/scss/interaction-state/ionic/_active.scss +0 -1
- package/scss/interaction-state/ionic/_hover.scss +0 -1
- package/scss/interaction-state/ionic/_index.scss +0 -1
- package/scss/interaction-states/_hover.scss +0 -1
- package/scss/interaction-states/_index.scss +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AnnotationTypeRegistry } from 'chartjs-plugin-annotation';
|
|
2
|
-
export declare const CHART_ANNOTATIONS_CONFIG:
|
|
2
|
+
export declare const CHART_ANNOTATIONS_CONFIG: AnnotationTypeRegistry;
|
|
@@ -111,8 +111,6 @@ 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;
|
|
116
114
|
_onBlur(event?: FocusEvent): void;
|
|
117
115
|
_onSpace(event: KeyboardEvent): void;
|
|
118
116
|
_onEnter(event: KeyboardEvent): void;
|
|
@@ -93,12 +93,10 @@ 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>;
|
|
97
96
|
private content;
|
|
98
97
|
private ionContentElement;
|
|
99
98
|
ionHeaderElement: ElementRef<HTMLIonHeaderElement>;
|
|
100
99
|
private ionFooterElement;
|
|
101
|
-
private backButtonDelegate;
|
|
102
100
|
private pageTitle;
|
|
103
101
|
private simpleTitleTemplate;
|
|
104
102
|
private simpleToolbarTitleTemplate;
|
|
@@ -135,7 +133,6 @@ export declare class PageComponent implements OnInit, OnDestroy, AfterViewInit,
|
|
|
135
133
|
delegateRefreshEvent(event: any): void;
|
|
136
134
|
private onEnter;
|
|
137
135
|
private onLeave;
|
|
138
|
-
private interceptBackButtonClicksSetup;
|
|
139
136
|
private initializeTitle;
|
|
140
137
|
private initializeActions;
|
|
141
138
|
private initializeContent;
|
|
@@ -146,6 +143,6 @@ export declare class PageComponent implements OnInit, OnDestroy, AfterViewInit,
|
|
|
146
143
|
}): void;
|
|
147
144
|
_onKeyboardWillHide(): void;
|
|
148
145
|
static ɵfac: i0.ɵɵFactoryDeclaration<PageComponent, [null, null, null, null, null, null, { optional: true; skipSelf: true; }]>;
|
|
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";
|
|
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"]>;
|
|
150
147
|
}
|
|
151
148
|
export {};
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -28,9 +28,11 @@ 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)
|
|
31
34
|
- [Polyfills](#polyfills)
|
|
32
35
|
- [Chart Components](#chart-components)
|
|
33
|
-
- [Contributing](#contributing)
|
|
34
36
|
|
|
35
37
|
## Installation
|
|
36
38
|
|
|
@@ -182,6 +184,40 @@ Use them in your terminal like: `npm run <script>` :
|
|
|
182
184
|
| dist:designsystem | Builds a distribution folder of the Designsystem library |
|
|
183
185
|
| 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) |
|
|
184
186
|
|
|
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
|
+
|
|
185
221
|
## Polyfills
|
|
186
222
|
|
|
187
223
|
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)_.
|
|
@@ -224,10 +260,6 @@ _**Please note:** If you don't want the additional http request for the polyfill
|
|
|
224
260
|
|
|
225
261
|
The Kirby chart components use Highcharts. Note that this is a licensed product.
|
|
226
262
|
|
|
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
|
-
|
|
231
263
|
[angular]: https://angular.io
|
|
232
264
|
[jasmine]: https://jasmine.github.io/
|
|
233
265
|
[jest]: https://jestjs.io/
|
|
@@ -57,8 +57,7 @@ export declare class MockPageComponent {
|
|
|
57
57
|
enter: EventEmitter<void>;
|
|
58
58
|
leave: EventEmitter<void>;
|
|
59
59
|
refresh: EventEmitter<PullToRefreshEvent>;
|
|
60
|
-
backButtonClick: EventEmitter<Event>;
|
|
61
60
|
static ɵfac: i0.ɵɵFactoryDeclaration<MockPageComponent, 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";
|
|
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, ["*"]>;
|
|
63
62
|
}
|
|
64
63
|
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/trigger-publish";
|
package/scss/_trigger.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/trigger";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/awesome-stylesheet";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/base/awesome-partial";
|
package/scss/base/_index.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/base";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/base/interaction-states";
|
package/scss/base/index.scss
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/base";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-state/state-layer";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-state/utilities";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-state/ionic/active";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-state/ionic/hover";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-state/ionic";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-states/hover";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@forward "~@kirbydesign/core/scss/interaction-states";
|