@kirbydesign/designsystem 4.0.16 → 4.0.20
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 +0 -4
- 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 +84 -107
- 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 +11 -10
- 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 +1 -1
- package/esm2015/lib/components/list/index.metadata.json +1 -1
- 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 +2 -3
- package/esm2015/lib/components/list/list.module.metadata.json +1 -1
- package/esm2015/lib/components/reorder-list/reorder-list.component.js +9 -3
- package/esm2015/lib/components/reorder-list/reorder-list.component.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/lib/components/mock.list.component.js +1 -5
- package/esm2015/testing-base/lib/components/mock.list.component.metadata.json +1 -1
- package/fesm2015/kirbydesign-designsystem-testing-base.js +0 -4
- package/fesm2015/kirbydesign-designsystem-testing-base.js.map +1 -1
- package/fesm2015/kirbydesign-designsystem.js +69 -78
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/kirbydesign-designsystem.d.ts +10 -9
- package/kirbydesign-designsystem.metadata.json +1 -1
- package/lib/components/card/card.component.d.ts +1 -1
- package/lib/components/list/index.d.ts +0 -1
- package/lib/components/list/list.component.d.ts +33 -10
- package/lib/components/reorder-list/reorder-list.component.d.ts +3 -1
- 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.metadata.json +1 -1
- 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';
|
|
@@ -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;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ReorderEvent } from './reorder-event';
|
|
3
3
|
export declare class ReorderListComponent implements OnChanges, OnDestroy {
|
|
4
|
+
private cdr;
|
|
4
5
|
items: any[];
|
|
5
6
|
subItemsName: string;
|
|
6
7
|
getItemTextDefault: (item: any) => string;
|
|
@@ -10,6 +11,7 @@ export declare class ReorderListComponent implements OnChanges, OnDestroy {
|
|
|
10
11
|
reorderGroupContainer: QueryList<ElementRef>;
|
|
11
12
|
private observer;
|
|
12
13
|
reorderActive: boolean;
|
|
14
|
+
constructor(cdr: ChangeDetectorRef);
|
|
13
15
|
ngOnChanges(): void;
|
|
14
16
|
private setupDomListener;
|
|
15
17
|
doReorder(ev: CustomEvent): 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.20",
|
|
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
|
},
|