@kirbydesign/designsystem 4.0.21 → 4.0.22
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.umd.js +6 -2
- 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/lib/components/list/list.component.js +7 -3
- package/esm2015/lib/components/list/list.component.metadata.json +1 -1
- package/fesm2015/kirbydesign-designsystem.js +6 -2
- package/fesm2015/kirbydesign-designsystem.js.map +1 -1
- package/kirbydesign-designsystem.metadata.json +1 -1
- package/lib/components/list/list.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -7535,6 +7535,7 @@
|
|
|
7535
7535
|
* Emitting event when an item is selected (tapped on mobile, clicked on web)
|
|
7536
7536
|
*/
|
|
7537
7537
|
this.itemSelect = new i0.EventEmitter();
|
|
7538
|
+
this.disableSelectionHighlight = false;
|
|
7538
7539
|
}
|
|
7539
7540
|
Object.defineProperty(ListComponent.prototype, "isShapeRounded", {
|
|
7540
7541
|
get: function () {
|
|
@@ -7582,8 +7583,10 @@
|
|
|
7582
7583
|
return section.name;
|
|
7583
7584
|
};
|
|
7584
7585
|
ListComponent.prototype.onItemSelect = function (item) {
|
|
7585
|
-
this.
|
|
7586
|
-
|
|
7586
|
+
if (!this.disableSelectionHighlight) {
|
|
7587
|
+
this._selectedItem = item;
|
|
7588
|
+
}
|
|
7589
|
+
this.itemSelect.emit(item);
|
|
7587
7590
|
};
|
|
7588
7591
|
ListComponent.prototype.onSwipeActionSelect = function (args) {
|
|
7589
7592
|
args.swipeAction.onSelected(args.item);
|
|
@@ -7631,6 +7634,7 @@
|
|
|
7631
7634
|
loadOnDemand: [{ type: i0.Output }],
|
|
7632
7635
|
swipeActions: [{ type: i0.Input }],
|
|
7633
7636
|
itemSelect: [{ type: i0.Output }],
|
|
7637
|
+
disableSelectionHighlight: [{ type: i0.Input }],
|
|
7634
7638
|
kirbyItems: [{ type: i0.ContentChildren, args: [ItemComponent,] }],
|
|
7635
7639
|
headerTemplate: [{ type: i0.ContentChild, args: [ListHeaderDirective, { static: false, read: i0.TemplateRef },] }],
|
|
7636
7640
|
sectionHeaderTemplate: [{ type: i0.ContentChild, args: [ListSectionHeaderDirective, { static: false, read: i0.TemplateRef },] }],
|