@kirbydesign/designsystem 4.0.17 → 4.0.21
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/bundles/kirbydesign-designsystem-testing-base.umd.js +57 -39
- package/bundles/kirbydesign-designsystem-testing-base.umd.js.map +1 -1
- package/bundles/kirbydesign-designsystem-testing-base.umd.min.js +1 -1
- package/bundles/kirbydesign-designsystem-testing-base.umd.min.js.map +1 -1
- package/bundles/kirbydesign-designsystem.umd.js +149 -163
- package/bundles/kirbydesign-designsystem.umd.js.map +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js +1 -1
- package/bundles/kirbydesign-designsystem.umd.min.js.map +1 -1
- package/esm2015/kirbydesign-designsystem.js +64 -62
- package/esm2015/kirbydesign-designsystem.metadata.json +1 -1
- package/esm2015/lib/components/card/card.component.js +3 -3
- package/esm2015/lib/components/card/card.component.metadata.json +1 -1
- package/esm2015/lib/components/list/index.js +2 -1
- package/esm2015/lib/components/list/index.metadata.json +1 -1
- package/esm2015/lib/components/list/list-experimental/list-experimental.component.js +10 -0
- package/esm2015/lib/components/list/list-experimental/list-experimental.component.metadata.json +1 -0
- package/esm2015/lib/components/list/list-item/list-item.component.js +1 -1
- package/esm2015/lib/components/list/list-item/list-item.component.metadata.json +1 -1
- package/esm2015/lib/components/list/list.component.js +23 -70
- package/esm2015/lib/components/list/list.component.metadata.json +1 -1
- package/esm2015/lib/components/list/list.module.js +4 -3
- package/esm2015/lib/components/list/list.module.metadata.json +1 -1
- package/esm2015/lib/directives/element-as-button/element-as-button.directive.js +35 -0
- package/esm2015/lib/directives/element-as-button/element-as-button.directive.metadata.json +1 -0
- package/esm2015/lib/kirby.module.js +3 -3
- package/esm2015/lib/kirby.module.metadata.json +1 -1
- package/esm2015/testing-base/kirbydesign-designsystem-testing-base.js +29 -28
- package/esm2015/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
- package/esm2015/testing-base/lib/components/mock.list-experimental.component.js +19 -0
- package/esm2015/testing-base/lib/components/mock.list-experimental.component.metadata.json +1 -0
- package/esm2015/testing-base/lib/components/mock.list.component.js +1 -5
- package/esm2015/testing-base/lib/components/mock.list.component.metadata.json +1 -1
- package/esm2015/testing-base/lib/mock-components.js +3 -1
- package/esm2015/testing-base/lib/mock-components.metadata.json +1 -1
- package/fesm2015/kirbydesign-designsystem-testing-base.js +20 -6
- package/fesm2015/kirbydesign-designsystem-testing-base.js.map +1 -1
- package/fesm2015/kirbydesign-designsystem.js +72 -77
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/kirbydesign-designsystem.d.ts +63 -61
- package/kirbydesign-designsystem.metadata.json +1 -1
- package/lib/components/card/card.component.d.ts +1 -1
- package/lib/components/list/index.d.ts +1 -1
- package/lib/components/list/list-experimental/list-experimental.component.d.ts +2 -0
- package/lib/components/list/list.component.d.ts +33 -10
- package/lib/directives/element-as-button/element-as-button.directive.d.ts +11 -0
- package/package.json +1 -2
- package/testing-base/kirbydesign-designsystem-testing-base.d.ts +28 -27
- package/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
- package/testing-base/lib/components/mock.list-experimental.component.d.ts +2 -0
- package/testing-base/lib/components/mock.list.component.d.ts +1 -5
- package/esm2015/lib/components/list/list-virtual-scroll-settings.type.js +0 -2
- package/esm2015/lib/components/list/list-virtual-scroll-settings.type.metadata.json +0 -1
- package/lib/components/list/list-virtual-scroll-settings.type.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ElementRef, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { ResizeObserverService } from '../shared/resize-observer/resize-observer.service';
|
|
3
3
|
export declare class CardComponent implements OnInit, OnDestroy {
|
|
4
4
|
private elementRef;
|
|
@@ -6,7 +6,6 @@ export { ListItemComponent } from './list-item/list-item.component';
|
|
|
6
6
|
export { BoundaryClass } from './list-item/list-item.component';
|
|
7
7
|
export { LoadOnDemandEvent } from './list.event';
|
|
8
8
|
export { ListSwipeAction, ListSwipeActionType, ListSwipeEnd } from './list-swipe-action.type';
|
|
9
|
-
export { VirtualScrollerSettings } from './list-virtual-scroll-settings.type';
|
|
10
9
|
export { InfiniteScrollDirective } from './directives/infinite-scroll.directive';
|
|
11
10
|
export { ListItemColorDirective } from './directives/list-item-color.directive';
|
|
12
11
|
export { ListFlexItemDirective } from './list.directive';
|
|
@@ -15,4 +14,5 @@ export { ListItemDirective } from './list.directive';
|
|
|
15
14
|
export { ListItemTemplateDirective } from './list.directive';
|
|
16
15
|
export { ListSectionHeaderDirective } from './list.directive';
|
|
17
16
|
export { ListFooterDirective } from './list.directive';
|
|
17
|
+
export { ListExperimentalComponent } from './list-experimental/list-experimental.component';
|
|
18
18
|
export { GroupByPipe } from './pipes/group-by.pipe';
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter, OnChanges, OnInit, TemplateRef, TrackByFunction } from '@angular/core';
|
|
2
|
-
import { IDatasource } from 'ngx-ui-scroll';
|
|
3
2
|
import { ThemeColor } from '@kirbydesign/core';
|
|
4
3
|
import { ItemComponent } from '../item/item.component';
|
|
5
4
|
import { InfiniteScrollDirective } from './directives/infinite-scroll.directive';
|
|
6
5
|
import { ListHelper } from './helpers/list-helper';
|
|
7
6
|
import { BoundaryClass } from './list-item/list-item.component';
|
|
8
7
|
import { ListSwipeAction } from './list-swipe-action.type';
|
|
9
|
-
import { VirtualScrollerSettings } from './list-virtual-scroll-settings.type';
|
|
10
8
|
import { LoadOnDemandEvent, LoadOnDemandEventData } from './list.event';
|
|
11
9
|
import { GroupByPipe } from './pipes/group-by.pipe';
|
|
12
10
|
export declare type ListShape = 'square' | 'rounded' | 'none';
|
|
@@ -15,12 +13,30 @@ export declare class ListComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
15
13
|
private groupBy;
|
|
16
14
|
list: any;
|
|
17
15
|
scrollDirective: InfiniteScrollDirective;
|
|
16
|
+
/**
|
|
17
|
+
* Provide items for the list to render. Items must be provided in the order you expect them to be rendered.
|
|
18
|
+
*/
|
|
18
19
|
items: any[];
|
|
19
20
|
getItemColor: (item: any) => ThemeColor;
|
|
21
|
+
/**
|
|
22
|
+
* Callback to determine name of section. Sections will be ordered alphabetically.
|
|
23
|
+
*/
|
|
20
24
|
getSectionName: (item: any) => string;
|
|
25
|
+
/**
|
|
26
|
+
* Callback that defines how to track changes for items in the iterable.
|
|
27
|
+
*/
|
|
21
28
|
trackBy: TrackByFunction<any>;
|
|
29
|
+
/**
|
|
30
|
+
* Text to display when no more items can be loaded (used for "on demand"-loading).
|
|
31
|
+
*/
|
|
22
32
|
noMoreItemsText: string;
|
|
33
|
+
/**
|
|
34
|
+
* Determines if dividers (bottom-border on list items) should be shown or not.
|
|
35
|
+
*/
|
|
23
36
|
showDivider: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Determines if list row text should turn bold on selection
|
|
39
|
+
*/
|
|
24
40
|
markSelectedRow: boolean;
|
|
25
41
|
/**
|
|
26
42
|
* Determine outline shape of:
|
|
@@ -33,31 +49,38 @@ export declare class ListComponent implements OnInit, AfterViewInit, OnChanges {
|
|
|
33
49
|
get isShapeRounded(): boolean;
|
|
34
50
|
get isShapeNone(): boolean;
|
|
35
51
|
hasItemSpacing: boolean;
|
|
36
|
-
useVirtualScroll: boolean;
|
|
37
|
-
virtualScrollViewportHeight: number;
|
|
38
|
-
virtualScrollSettings: VirtualScrollerSettings;
|
|
39
|
-
virtualScrollTimeout: number;
|
|
40
|
-
_virtualScrollData: IDatasource;
|
|
41
|
-
private getVirtualDataset;
|
|
42
|
-
private getItemsSlice;
|
|
43
52
|
/**
|
|
44
53
|
* Determines if the loadOnDemand event should be emitted.
|
|
45
54
|
* Will default to true if there is at least one subscriber to the loadOnDemand event
|
|
46
55
|
*/
|
|
47
56
|
isLoadOnDemandEnabled: boolean;
|
|
57
|
+
/**
|
|
58
|
+
* Emitting event when more items are to be loaded.
|
|
59
|
+
*/
|
|
48
60
|
loadOnDemand: EventEmitter<LoadOnDemandEvent>;
|
|
61
|
+
/**
|
|
62
|
+
* Determines if list items should have swipe actions or not
|
|
63
|
+
* - the order of swipe actions is used to determine edge actions,
|
|
64
|
+
* as well as their order of appearance on the screen.
|
|
65
|
+
*/
|
|
49
66
|
swipeActions: ListSwipeAction[];
|
|
67
|
+
/**
|
|
68
|
+
* Emitting event when an item is selected (tapped on mobile, clicked on web)
|
|
69
|
+
*/
|
|
50
70
|
itemSelect: EventEmitter<any>;
|
|
51
71
|
kirbyItems: ItemComponent[];
|
|
52
72
|
headerTemplate: TemplateRef<any>;
|
|
53
73
|
sectionHeaderTemplate: TemplateRef<any>;
|
|
54
74
|
footerTemplate: TemplateRef<any>;
|
|
75
|
+
/**
|
|
76
|
+
* The first element that matches ListItemDirective.
|
|
77
|
+
* As a structural directive it unfolds into a template. This is a reference to that.
|
|
78
|
+
*/
|
|
55
79
|
itemTemplate: TemplateRef<any>;
|
|
56
80
|
_isSectionsEnabled: boolean;
|
|
57
81
|
_isSelectable: boolean;
|
|
58
82
|
_isLoading: boolean;
|
|
59
83
|
_groupedItems: any[];
|
|
60
|
-
_virtualGroupedItems: any[];
|
|
61
84
|
_selectedItem: any;
|
|
62
85
|
constructor(listHelper: ListHelper, groupBy: GroupByPipe);
|
|
63
86
|
ngOnInit(): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
|
2
|
+
import { CardComponent } from '../../components/card/card.component';
|
|
3
|
+
export declare class ElementAsButtonDirective implements OnInit {
|
|
4
|
+
private card;
|
|
5
|
+
private clickableElement;
|
|
6
|
+
role: string;
|
|
7
|
+
tabindex: number;
|
|
8
|
+
constructor(card: CardComponent, clickableElement: ElementRef);
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
_onKeydownHandler(event: KeyboardEvent): void;
|
|
11
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirbydesign/designsystem",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.21",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"chart.js": "3.3.2",
|
|
6
6
|
"chartjs-plugin-annotation": "1.0.2",
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
"date-fns-tz": "1.1.4",
|
|
11
11
|
"highcharts": "8.0.4",
|
|
12
12
|
"@fontsource/roboto": "4.2.1",
|
|
13
|
-
"ngx-ui-scroll": "^2.0.1",
|
|
14
13
|
"inputmask": "5.0.5",
|
|
15
14
|
"tslib": "^2.0.0"
|
|
16
15
|
},
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
5
|
export { MockAccordionItemComponent as ɵb } from './lib/components/mock.accordion-item.component';
|
|
6
|
-
export { MockActionSheetComponent as
|
|
6
|
+
export { MockActionSheetComponent as ɵbh } from './lib/components/mock.action-sheet.component';
|
|
7
7
|
export { MockAppComponent as ɵc } from './lib/components/mock.app.component';
|
|
8
8
|
export { MockAvatarComponent as ɵd } from './lib/components/mock.avatar.component';
|
|
9
9
|
export { MockButtonComponent as ɵe } from './lib/components/mock.button.component';
|
|
@@ -28,31 +28,32 @@ export { MockInputCounterComponent as ɵv } from './lib/components/mock.input-co
|
|
|
28
28
|
export { MockInputComponent as ɵu } from './lib/components/mock.input.component';
|
|
29
29
|
export { MockItemComponent as ɵz } from './lib/components/mock.item.component';
|
|
30
30
|
export { MockLabelComponent as ɵba } from './lib/components/mock.label.component';
|
|
31
|
-
export {
|
|
32
|
-
export {
|
|
33
|
-
export {
|
|
34
|
-
export {
|
|
35
|
-
export {
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export {
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
49
|
-
export {
|
|
50
|
-
export {
|
|
31
|
+
export { MockListExperimentalComponent as ɵbb } from './lib/components/mock.list-experimental.component';
|
|
32
|
+
export { MockListHeaderComponent as ɵbc } from './lib/components/mock.list-header.component';
|
|
33
|
+
export { MockListItemComponent as ɵbd } from './lib/components/mock.list-item.component';
|
|
34
|
+
export { MockListSectionHeaderComponent as ɵbe } from './lib/components/mock.list-section-header.component';
|
|
35
|
+
export { MockListComponent as ɵbf } from './lib/components/mock.list.component';
|
|
36
|
+
export { MockLoadingOverlayComponent as ɵbg } from './lib/components/mock.loading-overlay.component';
|
|
37
|
+
export { MockModalFooterComponent as ɵbi } from './lib/components/mock.modal-footer.component';
|
|
38
|
+
export { MockPageFooterComponent as ɵbj } from './lib/components/mock.page-footer.component';
|
|
39
|
+
export { MockPageActionsComponent as ɵbr, MockPageActionsDirective as ɵbm, MockPageComponent as ɵbs, MockPageContentComponent as ɵbq, MockPageContentDirective as ɵbn, MockPageProgressComponent as ɵbo, MockPageTitleComponent as ɵbp, MockPageTitleDirective as ɵbk, MockPageToolbarTitleDirective as ɵbl } from './lib/components/mock.page.component';
|
|
40
|
+
export { MockPopoverComponent as ɵbt } from './lib/components/mock.popover.component';
|
|
41
|
+
export { MockProgressCircleComponent as ɵbu } from './lib/components/mock.progress-circle.component';
|
|
42
|
+
export { MockRadioGroupComponent as ɵbv } from './lib/components/mock.radio-group.component';
|
|
43
|
+
export { MockRadioComponent as ɵbw } from './lib/components/mock.radio.component';
|
|
44
|
+
export { MockRangeComponent as ɵbx } from './lib/components/mock.range.component';
|
|
45
|
+
export { MockReorderListComponent as ɵby } from './lib/components/mock.reorder-list.component';
|
|
46
|
+
export { MockRouterOutletComponent as ɵbz } from './lib/components/mock.router-outlet.component';
|
|
47
|
+
export { MockSegmentedControlComponent as ɵca } from './lib/components/mock.segmented-control.component';
|
|
48
|
+
export { MockSlideButtonComponent as ɵcb } from './lib/components/mock.slide-button.component';
|
|
49
|
+
export { MockSpinnerComponent as ɵcc } from './lib/components/mock.spinner.component';
|
|
50
|
+
export { MockTabButtonComponent as ɵcd } from './lib/components/mock.tab-button.component';
|
|
51
|
+
export { MockTabsComponent as ɵce } from './lib/components/mock.tabs.component';
|
|
51
52
|
export { MockTextareaComponent as ɵw } from './lib/components/mock.textarea.component';
|
|
52
|
-
export { MockToggleButtonComponent as
|
|
53
|
-
export { MockToggleComponent as
|
|
54
|
-
export { MockAccordionDirective as
|
|
55
|
-
export { MockFitHeadingDirective as
|
|
56
|
-
export { MockThemeColorDirective as
|
|
53
|
+
export { MockToggleButtonComponent as ɵcg } from './lib/components/mock.toggle-button.component';
|
|
54
|
+
export { MockToggleComponent as ɵcf } from './lib/components/mock.toggle.component';
|
|
55
|
+
export { MockAccordionDirective as ɵck } from './lib/directives/mock.accordion.directive';
|
|
56
|
+
export { MockFitHeadingDirective as ɵcj } from './lib/directives/mock.fit-heading.directive';
|
|
57
|
+
export { MockThemeColorDirective as ɵci } from './lib/directives/mock.theme-color.directive';
|
|
57
58
|
export { MOCK_COMPONENTS as ɵa } from './lib/mock-components';
|
|
58
|
-
export { MOCK_DIRECTIVES as
|
|
59
|
+
export { MOCK_DIRECTIVES as ɵch } from './lib/mock-directives';
|