@kirbydesign/designsystem 4.0.19 → 4.0.23
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 +79 -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 +139 -165
- 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 +65 -63
- package/esm2015/kirbydesign-designsystem.metadata.json +1 -1
- package/esm2015/lib/components/index.js +2 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/item-group/item-group.component.js +17 -0
- package/esm2015/lib/components/item-group/item-group.component.metadata.json +1 -0
- 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 +29 -72
- 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/kirby.module.js +3 -3
- package/esm2015/lib/kirby.module.metadata.json +1 -1
- package/esm2015/testing-base/kirbydesign-designsystem-testing-base.js +30 -28
- package/esm2015/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
- package/esm2015/testing-base/lib/components/mock.item-group.component.js +19 -0
- package/esm2015/testing-base/lib/components/mock.item-group.component.metadata.json +1 -0
- 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 +5 -1
- package/esm2015/testing-base/lib/mock-components.metadata.json +1 -1
- package/fesm2015/kirbydesign-designsystem-testing-base.js +38 -6
- package/fesm2015/kirbydesign-designsystem-testing-base.js.map +1 -1
- package/fesm2015/kirbydesign-designsystem.js +60 -78
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/kirbydesign-designsystem.d.ts +64 -62
- package/kirbydesign-designsystem.metadata.json +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/item-group/item-group.component.d.ts +3 -0
- 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 +34 -10
- package/package.json +1 -2
- package/testing-base/kirbydesign-designsystem-testing-base.d.ts +29 -27
- package/testing-base/kirbydesign-designsystem-testing-base.metadata.json +1 -1
- package/testing-base/lib/components/mock.item-group.component.d.ts +2 -0
- 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
|
@@ -17,6 +17,7 @@ export { GridComponent } from './grid/grid.component';
|
|
|
17
17
|
export { GridCardConfiguration } from './grid/grid-card-configuration';
|
|
18
18
|
export * from './icon';
|
|
19
19
|
export * from './item';
|
|
20
|
+
export { ItemGroupComponent } from './item-group/item-group.component';
|
|
20
21
|
export * from './loading-overlay';
|
|
21
22
|
export * from './list';
|
|
22
23
|
export * from './reorder-list';
|
|
@@ -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,39 @@ 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>;
|
|
71
|
+
disableSelectionHighlight: boolean;
|
|
51
72
|
kirbyItems: ItemComponent[];
|
|
52
73
|
headerTemplate: TemplateRef<any>;
|
|
53
74
|
sectionHeaderTemplate: TemplateRef<any>;
|
|
54
75
|
footerTemplate: TemplateRef<any>;
|
|
76
|
+
/**
|
|
77
|
+
* The first element that matches ListItemDirective.
|
|
78
|
+
* As a structural directive it unfolds into a template. This is a reference to that.
|
|
79
|
+
*/
|
|
55
80
|
itemTemplate: TemplateRef<any>;
|
|
56
81
|
_isSectionsEnabled: boolean;
|
|
57
82
|
_isSelectable: boolean;
|
|
58
83
|
_isLoading: boolean;
|
|
59
84
|
_groupedItems: any[];
|
|
60
|
-
_virtualGroupedItems: any[];
|
|
61
85
|
_selectedItem: any;
|
|
62
86
|
constructor(listHelper: ListHelper, groupBy: GroupByPipe);
|
|
63
87
|
ngOnInit(): void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kirbydesign/designsystem",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.23",
|
|
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 ɵbi } 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';
|
|
@@ -26,33 +26,35 @@ export { MockGridComponent as ɵx } from './lib/components/mock.grid.component';
|
|
|
26
26
|
export { MockIconComponent as ɵy } from './lib/components/mock.icon.component';
|
|
27
27
|
export { MockInputCounterComponent as ɵv } from './lib/components/mock.input-counter.component';
|
|
28
28
|
export { MockInputComponent as ɵu } from './lib/components/mock.input.component';
|
|
29
|
+
export { MockItemGroupComponent as ɵbb } from './lib/components/mock.item-group.component';
|
|
29
30
|
export { MockItemComponent as ɵz } from './lib/components/mock.item.component';
|
|
30
31
|
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 {
|
|
32
|
+
export { MockListExperimentalComponent as ɵbc } from './lib/components/mock.list-experimental.component';
|
|
33
|
+
export { MockListHeaderComponent as ɵbd } from './lib/components/mock.list-header.component';
|
|
34
|
+
export { MockListItemComponent as ɵbe } from './lib/components/mock.list-item.component';
|
|
35
|
+
export { MockListSectionHeaderComponent as ɵbf } from './lib/components/mock.list-section-header.component';
|
|
36
|
+
export { MockListComponent as ɵbg } from './lib/components/mock.list.component';
|
|
37
|
+
export { MockLoadingOverlayComponent as ɵbh } from './lib/components/mock.loading-overlay.component';
|
|
38
|
+
export { MockModalFooterComponent as ɵbj } from './lib/components/mock.modal-footer.component';
|
|
39
|
+
export { MockPageFooterComponent as ɵbk } from './lib/components/mock.page-footer.component';
|
|
40
|
+
export { MockPageActionsComponent as ɵbs, MockPageActionsDirective as ɵbn, MockPageComponent as ɵbt, MockPageContentComponent as ɵbr, MockPageContentDirective as ɵbo, MockPageProgressComponent as ɵbp, MockPageTitleComponent as ɵbq, MockPageTitleDirective as ɵbl, MockPageToolbarTitleDirective as ɵbm } from './lib/components/mock.page.component';
|
|
41
|
+
export { MockPopoverComponent as ɵbu } from './lib/components/mock.popover.component';
|
|
42
|
+
export { MockProgressCircleComponent as ɵbv } from './lib/components/mock.progress-circle.component';
|
|
43
|
+
export { MockRadioGroupComponent as ɵbw } from './lib/components/mock.radio-group.component';
|
|
44
|
+
export { MockRadioComponent as ɵbx } from './lib/components/mock.radio.component';
|
|
45
|
+
export { MockRangeComponent as ɵby } from './lib/components/mock.range.component';
|
|
46
|
+
export { MockReorderListComponent as ɵbz } from './lib/components/mock.reorder-list.component';
|
|
47
|
+
export { MockRouterOutletComponent as ɵca } from './lib/components/mock.router-outlet.component';
|
|
48
|
+
export { MockSegmentedControlComponent as ɵcb } from './lib/components/mock.segmented-control.component';
|
|
49
|
+
export { MockSlideButtonComponent as ɵcc } from './lib/components/mock.slide-button.component';
|
|
50
|
+
export { MockSpinnerComponent as ɵcd } from './lib/components/mock.spinner.component';
|
|
51
|
+
export { MockTabButtonComponent as ɵce } from './lib/components/mock.tab-button.component';
|
|
52
|
+
export { MockTabsComponent as ɵcf } from './lib/components/mock.tabs.component';
|
|
51
53
|
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
|
|
54
|
+
export { MockToggleButtonComponent as ɵch } from './lib/components/mock.toggle-button.component';
|
|
55
|
+
export { MockToggleComponent as ɵcg } from './lib/components/mock.toggle.component';
|
|
56
|
+
export { MockAccordionDirective as ɵcl } from './lib/directives/mock.accordion.directive';
|
|
57
|
+
export { MockFitHeadingDirective as ɵck } from './lib/directives/mock.fit-heading.directive';
|
|
58
|
+
export { MockThemeColorDirective as ɵcj } from './lib/directives/mock.theme-color.directive';
|
|
57
59
|
export { MOCK_COMPONENTS as ɵa } from './lib/mock-components';
|
|
58
|
-
export { MOCK_DIRECTIVES as
|
|
60
|
+
export { MOCK_DIRECTIVES as ɵci } from './lib/mock-directives';
|