@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
|
@@ -23,7 +23,6 @@ import 'inputmask/lib/extensions/inputmask.date.extensions';
|
|
|
23
23
|
import Inputmask from 'inputmask/lib/inputmask';
|
|
24
24
|
import 'inputmask/lib/extensions/inputmask.numeric.extensions';
|
|
25
25
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
26
|
-
import { UiScrollModule } from 'ngx-ui-scroll';
|
|
27
26
|
import { defineCustomElements } from '@kirbydesign/core/loader';
|
|
28
27
|
|
|
29
28
|
var KirbyAnimation;
|
|
@@ -6118,6 +6117,22 @@ ItemModule.decorators = [
|
|
|
6118
6117
|
},] }
|
|
6119
6118
|
];
|
|
6120
6119
|
|
|
6120
|
+
class ItemGroupComponent {
|
|
6121
|
+
constructor() {
|
|
6122
|
+
this.role = 'group';
|
|
6123
|
+
}
|
|
6124
|
+
}
|
|
6125
|
+
ItemGroupComponent.decorators = [
|
|
6126
|
+
{ type: Component, args: [{
|
|
6127
|
+
selector: 'kirby-item-group',
|
|
6128
|
+
template: "<ng-content></ng-content>\n",
|
|
6129
|
+
styles: [":host{display:block}"]
|
|
6130
|
+
},] }
|
|
6131
|
+
];
|
|
6132
|
+
ItemGroupComponent.propDecorators = {
|
|
6133
|
+
role: [{ type: HostBinding, args: ['attr.role',] }]
|
|
6134
|
+
};
|
|
6135
|
+
|
|
6121
6136
|
class SpinnerComponent {
|
|
6122
6137
|
constructor() { }
|
|
6123
6138
|
ngOnInit() { }
|
|
@@ -6365,22 +6380,21 @@ GroupByPipe.decorators = [
|
|
|
6365
6380
|
},] }
|
|
6366
6381
|
];
|
|
6367
6382
|
|
|
6368
|
-
var __awaiter$8 = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
6369
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
6370
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
6371
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6372
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6373
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
6374
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
6375
|
-
});
|
|
6376
|
-
};
|
|
6377
|
-
const INTERVAL = 400;
|
|
6378
6383
|
class ListComponent {
|
|
6379
6384
|
constructor(listHelper, groupBy) {
|
|
6380
6385
|
this.listHelper = listHelper;
|
|
6381
6386
|
this.groupBy = groupBy;
|
|
6387
|
+
/**
|
|
6388
|
+
* Provide items for the list to render. Items must be provided in the order you expect them to be rendered.
|
|
6389
|
+
*/
|
|
6382
6390
|
this.items = [];
|
|
6391
|
+
/**
|
|
6392
|
+
* Determines if dividers (bottom-border on list items) should be shown or not.
|
|
6393
|
+
*/
|
|
6383
6394
|
this.showDivider = false;
|
|
6395
|
+
/**
|
|
6396
|
+
* Determines if list row text should turn bold on selection
|
|
6397
|
+
*/
|
|
6384
6398
|
this.markSelectedRow = false;
|
|
6385
6399
|
/**
|
|
6386
6400
|
* Determine outline shape of:
|
|
@@ -6390,17 +6404,21 @@ class ListComponent {
|
|
|
6390
6404
|
* `square` means **without** rounded corners, `rounded` means **with** rounded corners., `none` means **without** padding, border, box-shadow and background.
|
|
6391
6405
|
*/
|
|
6392
6406
|
this.shape = 'rounded';
|
|
6393
|
-
|
|
6394
|
-
|
|
6395
|
-
|
|
6396
|
-
this.virtualScrollTimeout = 5000;
|
|
6397
|
-
this._virtualScrollData = {
|
|
6398
|
-
get: (index, count) => this.getVirtualDataset(index, count),
|
|
6399
|
-
settings: Object.assign({ minIndex: this.virtualScrollSettings.minIndex || 0, startIndex: this.virtualScrollSettings.startIndex || 0, bufferSize: this.virtualScrollSettings.bufferSize || 10 }, this.virtualScrollSettings),
|
|
6400
|
-
};
|
|
6407
|
+
/**
|
|
6408
|
+
* Emitting event when more items are to be loaded.
|
|
6409
|
+
*/
|
|
6401
6410
|
this.loadOnDemand = new EventEmitter();
|
|
6411
|
+
/**
|
|
6412
|
+
* Determines if list items should have swipe actions or not
|
|
6413
|
+
* - the order of swipe actions is used to determine edge actions,
|
|
6414
|
+
* as well as their order of appearance on the screen.
|
|
6415
|
+
*/
|
|
6402
6416
|
this.swipeActions = [];
|
|
6417
|
+
/**
|
|
6418
|
+
* Emitting event when an item is selected (tapped on mobile, clicked on web)
|
|
6419
|
+
*/
|
|
6403
6420
|
this.itemSelect = new EventEmitter();
|
|
6421
|
+
this.disableSelectionHighlight = false;
|
|
6404
6422
|
}
|
|
6405
6423
|
get isShapeRounded() {
|
|
6406
6424
|
return this.shape === 'rounded';
|
|
@@ -6408,41 +6426,6 @@ class ListComponent {
|
|
|
6408
6426
|
get isShapeNone() {
|
|
6409
6427
|
return this.shape === 'none';
|
|
6410
6428
|
}
|
|
6411
|
-
getVirtualDataset(index, count) {
|
|
6412
|
-
return __awaiter$8(this, void 0, void 0, function* () {
|
|
6413
|
-
return yield new Promise((resolve) => {
|
|
6414
|
-
setTimeout(() => {
|
|
6415
|
-
const itemSlice = this.getItemsSlice(index, count);
|
|
6416
|
-
// If we return less items than count, virtual scroll will interprete it as EOF and stop asking for more
|
|
6417
|
-
if (itemSlice.length < count && this.isLoadOnDemandEnabled) {
|
|
6418
|
-
let elapsedTime = 0;
|
|
6419
|
-
/* As virtual scroll fixes the viewport causing ScrollEnd to not be emitted; do it manually to trigger load on demand */
|
|
6420
|
-
this.scrollDirective.scrollEnd.emit();
|
|
6421
|
-
const poller = setInterval(() => {
|
|
6422
|
-
elapsedTime += INTERVAL;
|
|
6423
|
-
if (this._isLoading) {
|
|
6424
|
-
// Just a failsafe in case this.isLoading for some reason is not reset
|
|
6425
|
-
if (elapsedTime > this.virtualScrollTimeout) {
|
|
6426
|
-
clearInterval(poller);
|
|
6427
|
-
resolve([]);
|
|
6428
|
-
}
|
|
6429
|
-
return;
|
|
6430
|
-
}
|
|
6431
|
-
clearInterval(poller);
|
|
6432
|
-
resolve(this.getItemsSlice(index, count));
|
|
6433
|
-
}, INTERVAL);
|
|
6434
|
-
}
|
|
6435
|
-
else {
|
|
6436
|
-
resolve(itemSlice);
|
|
6437
|
-
}
|
|
6438
|
-
}, INTERVAL);
|
|
6439
|
-
});
|
|
6440
|
-
});
|
|
6441
|
-
}
|
|
6442
|
-
getItemsSlice(index, count) {
|
|
6443
|
-
const _items = this._isSectionsEnabled ? this._virtualGroupedItems : this.items;
|
|
6444
|
-
return _items.slice(index, index + count);
|
|
6445
|
-
}
|
|
6446
6429
|
ngOnInit() {
|
|
6447
6430
|
this._isSelectable = this.itemSelect.observers.length > 0;
|
|
6448
6431
|
if (this.isLoadOnDemandEnabled === undefined) {
|
|
@@ -6463,13 +6446,6 @@ class ListComponent {
|
|
|
6463
6446
|
this._groupedItems = this._isSectionsEnabled
|
|
6464
6447
|
? this.groupBy.transform(this.items, this.getSectionName)
|
|
6465
6448
|
: null;
|
|
6466
|
-
this._virtualGroupedItems =
|
|
6467
|
-
this.useVirtualScroll && this._groupedItems
|
|
6468
|
-
? this._groupedItems.reduce((accumulator, group) => {
|
|
6469
|
-
accumulator.push({ headingName: group.name });
|
|
6470
|
-
return accumulator.concat(...group.items);
|
|
6471
|
-
}, [])
|
|
6472
|
-
: null;
|
|
6473
6449
|
}
|
|
6474
6450
|
_onLoadOnDemand(event) {
|
|
6475
6451
|
this.listHelper.onLoadOnDemand(this, event);
|
|
@@ -6481,8 +6457,10 @@ class ListComponent {
|
|
|
6481
6457
|
return section.name;
|
|
6482
6458
|
}
|
|
6483
6459
|
onItemSelect(item) {
|
|
6484
|
-
this.
|
|
6485
|
-
|
|
6460
|
+
if (!this.disableSelectionHighlight) {
|
|
6461
|
+
this._selectedItem = item;
|
|
6462
|
+
}
|
|
6463
|
+
this.itemSelect.emit(item);
|
|
6486
6464
|
}
|
|
6487
6465
|
onSwipeActionSelect(args) {
|
|
6488
6466
|
args.swipeAction.onSelected(args.item);
|
|
@@ -6492,9 +6470,6 @@ class ListComponent {
|
|
|
6492
6470
|
_getBoundaryClass(index, section) {
|
|
6493
6471
|
var _a, _b;
|
|
6494
6472
|
let _items = section || this.items;
|
|
6495
|
-
if (this._isSectionsEnabled && this.useVirtualScroll) {
|
|
6496
|
-
_items = this._virtualGroupedItems;
|
|
6497
|
-
}
|
|
6498
6473
|
if (index === 0 || ((_a = _items[index - 1]) === null || _a === void 0 ? void 0 : _a.headingName))
|
|
6499
6474
|
return this.headerTemplate ? null : 'first';
|
|
6500
6475
|
if (index === _items.length - 1 || ((_b = _items[index + 1]) === null || _b === void 0 ? void 0 : _b.headingName))
|
|
@@ -6504,9 +6479,9 @@ class ListComponent {
|
|
|
6504
6479
|
ListComponent.decorators = [
|
|
6505
6480
|
{ type: Component, args: [{
|
|
6506
6481
|
selector: 'kirby-list',
|
|
6507
|
-
template: "<ion-list\n #list\n kirbyInfiniteScroll\n (scrollEnd)=\"_onLoadOnDemand()\"\n [disabled]=\"!isLoadOnDemandEnabled\"\n class=\"list\"\n [class.has-header]=\"headerTemplate\"\n [class.has-footer]=\"footerTemplate\"\n [class.has-divider]=\"showDivider\"\n>\n <ion-list-header *ngIf=\"headerTemplate\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ion-list-header>\n\n <
|
|
6482
|
+
template: "<ion-list\n #list\n kirbyInfiniteScroll\n (scrollEnd)=\"_onLoadOnDemand()\"\n [disabled]=\"!isLoadOnDemandEnabled\"\n class=\"list\"\n [class.has-header]=\"headerTemplate\"\n [class.has-footer]=\"footerTemplate\"\n [class.has-divider]=\"showDivider\"\n>\n <ion-list-header *ngIf=\"headerTemplate\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </ion-list-header>\n\n <ng-container\n *ngTemplateOutlet=\"\n _isSectionsEnabled ? groupedListTemplate : itemsTemplate;\n context: { $implicit: items }\n \"\n ></ng-container>\n\n <div *ngIf=\"footerTemplate\" class=\"footer\">\n <ng-container *ngTemplateOutlet=\"footerTemplate\"></ng-container>\n </div>\n</ion-list>\n\n<p *ngIf=\"!isLoadOnDemandEnabled && noMoreItemsText\" class=\"no-more-items\">\n {{ noMoreItemsText }}\n</p>\n<div *ngIf=\"_isLoading\" class=\"loading\">\n <kirby-spinner></kirby-spinner>\n</div>\n\n<ng-template #groupedListTemplate>\n <ion-item-group *ngFor=\"let section of _groupedItems; trackBy: sectionTrackBy\">\n <ion-item-divider>\n <ng-container\n *ngTemplateOutlet=\"sectionHeaderTemplate; context: { $implicit: section.name }\"\n ></ng-container>\n </ion-item-divider>\n\n <div class=\"list-items\">\n <ng-container\n *ngTemplateOutlet=\"itemsTemplate; context: { $implicit: section.items }\"\n ></ng-container>\n </div>\n </ion-item-group>\n</ng-template>\n\n<ng-template #itemsTemplate let-items>\n <kirby-list-item\n *ngFor=\"let item of items; let i = index; trackBy: trackBy || defaultTrackBy\"\n [item]=\"item\"\n [itemTemplate]=\"itemTemplate\"\n [swipeActions]=\"swipeActions\"\n [boundaryClass]=\"_getBoundaryClass(i, items)\"\n [isSelectable]=\"_isSelectable\"\n [getItemColor]=\"getItemColor\"\n [isSelected]=\"_isSelectable && item === _selectedItem\"\n (itemSelect)=\"onItemSelect($event)\"\n (swipeActionSelect)=\"onSwipeActionSelect($event)\"\n [class.is-single]=\"items.length === 1\"\n >\n </kirby-list-item>\n</ng-template>\n",
|
|
6508
6483
|
providers: [ListHelper, GroupByPipe],
|
|
6509
|
-
styles: [":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}
|
|
6484
|
+
styles: [":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}ion-list-header{background-color:var(--kirby-white);border-bottom:1px solid var(--kirby-background-color);padding:0;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;font-size:inherit;min-height:0;overflow:inherit}ion-item{--background:var(--kirby-white);--background-activated:var(--kirby-white-shade);--background-hover:var(--kirby-background-color);--background-focused:var(--kirby-background-color);--inner-border-width:0;--ion-safe-area-right:0;--min-height:56px;--padding-bottom:8px;--padding-end:16px;--padding-start:16px;--padding-top:8px;display:flex;font-size:14px;min-height:56px;overflow:visible;width:100%}ion-item-divider{font-weight:inherit}ion-item-sliding.item-sliding-active-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}ion-item-sliding.light{--kirby-item-background:var(--kirby-light);--kirby-item-background-activated:var(--kirby-light-shade);--kirby-item-background-focused:var(--kirby-light-shade);--kirby-item-background-hover:var(--kirby-light-tint)}ion-item-sliding.light ion-item{--background:var(--kirby-light);--color:var(--kirby-light-contrast);--background-activated:var(--kirby-light-shade);--background-focused:var(--kirby-light-shade);--background-hover:var(--kirby-light-tint)}ion-item-group{margin-bottom:24px}ion-item-group:last-of-type{margin-bottom:0}ion-item-divider{--inner-padding-end:0;--color:unset;background-color:transparent;border-color:transparent;min-height:0;padding:0 16px 8px}.footer{background-color:var(--kirby-white);border-top:1px solid var(--kirby-background-color);display:flex;align-items:center;justify-content:space-between;width:100%}.loading,.no-more-items{width:100%;padding:24px 0;text-align:center}.swipe-action{display:flex;color:var(--kirby-black);background-color:transparent}.swipe-action .primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}.swipe-action .secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}.swipe-action .tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}.swipe-action .success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}.swipe-action .warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}.swipe-action .danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}.swipe-action .light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}.swipe-action .medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}.swipe-action .dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}.swipe-action ion-item-option{height:100%;display:inline-block;text-align:center}.swipe-action .item-content{display:inline-grid;min-width:70px;flex-direction:column}.swipe-action .item-content ion-label{--background:unset;--color:unset}ion-item-options[side=end]{border-bottom-width:0}:host-context(.has-sections) .list{box-shadow:none}:host-context(.has-sections) .list-items{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);border-radius:16px}:host-context(.has-sections) .footer{background-color:transparent;border-top:none}:host-context(.has-sections) ion-list-header{background-color:transparent;border-bottom:none}:host-context(.shape-rounded) .list,:host-context(.shape-rounded) .list-items{border-radius:16px}:host-context(.shape-rounded) ion-item-sliding.first,:host-context(.shape-rounded) ion-item.first,:host-context(.shape-rounded) ion-list-header{border-top-left-radius:16px;border-top-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-header ion-item,:host-context(.shape-rounded):not(.has-sections) .has-header ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-top-left-radius:0;border-top-right-radius:0}:host-context(.shape-rounded) .footer,:host-context(.shape-rounded) ion-item-sliding.last,:host-context(.shape-rounded) ion-item.last{border-bottom-left-radius:16px;border-bottom-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item,:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-none) .list,:host-context(.shape-none) .list-items{box-shadow:none;border-radius:unset}:host-context(.shape-none) .list ion-item,:host-context(.shape-none) .list ion-item-sliding{--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-top:0;--inner-padding-bottom:0;--background:none;--background-activated:none;--background-hover:none;--background-focused:none;overflow:visible}:host-context(.item-spacing) .list kirby-list-item{margin-bottom:16px}:host-context(.item-spacing) .list kirby-list-item:last-child,:host-context(.item-spacing) .list kirby-list-item>ion-item{margin-bottom:0}"]
|
|
6510
6485
|
},] }
|
|
6511
6486
|
];
|
|
6512
6487
|
/** @nocollapse */
|
|
@@ -6528,14 +6503,11 @@ ListComponent.propDecorators = {
|
|
|
6528
6503
|
isShapeRounded: [{ type: HostBinding, args: ['class.shape-rounded',] }],
|
|
6529
6504
|
isShapeNone: [{ type: HostBinding, args: ['class.shape-none',] }],
|
|
6530
6505
|
hasItemSpacing: [{ type: HostBinding, args: ['class.item-spacing',] }, { type: Input }],
|
|
6531
|
-
useVirtualScroll: [{ type: Input }],
|
|
6532
|
-
virtualScrollViewportHeight: [{ type: Input }],
|
|
6533
|
-
virtualScrollSettings: [{ type: Input }],
|
|
6534
|
-
virtualScrollTimeout: [{ type: Input }],
|
|
6535
6506
|
isLoadOnDemandEnabled: [{ type: Input }],
|
|
6536
6507
|
loadOnDemand: [{ type: Output }],
|
|
6537
6508
|
swipeActions: [{ type: Input }],
|
|
6538
6509
|
itemSelect: [{ type: Output }],
|
|
6510
|
+
disableSelectionHighlight: [{ type: Input }],
|
|
6539
6511
|
kirbyItems: [{ type: ContentChildren, args: [ItemComponent,] }],
|
|
6540
6512
|
headerTemplate: [{ type: ContentChild, args: [ListHeaderDirective, { static: false, read: TemplateRef },] }],
|
|
6541
6513
|
sectionHeaderTemplate: [{ type: ContentChild, args: [ListSectionHeaderDirective, { static: false, read: TemplateRef },] }],
|
|
@@ -6670,7 +6642,7 @@ ListItemComponent.decorators = [
|
|
|
6670
6642
|
{ type: Component, args: [{
|
|
6671
6643
|
selector: 'kirby-list-item',
|
|
6672
6644
|
template: "<ion-item-sliding\n [class.selected]=\"isSelected\"\n [kirbyListItemColor]=\"getItemColor\"\n [item]=\"item\"\n [disabled]=\"_isSwipingEnabled ? null : true\"\n keyHandler\n [ngClass]=\"boundaryClass\"\n (click)=\"_onItemSelect(item)\"\n>\n <ng-container\n *ngTemplateOutlet=\"swipeActionsTemplate; context: { $implicit: item }\"\n ></ng-container>\n <ng-container *ngTemplateOutlet=\"itemTemplate; context: { $implicit: item }\"></ng-container>\n</ion-item-sliding>\n\n<ng-template #swipeActionsTemplate let-item>\n <ion-item-options *ngIf=\"_hasSwipeActions(item)\" [side]=\"_getSwipeActionEnd(item)\">\n <div class=\"swipe-action\">\n <ng-container *ngFor=\"let swipeAction of _getSwipeActions(item)\">\n <ion-item-option\n [ngClass]=\"_getSwipeActionType(swipeAction, item)\"\n (click)=\"_onSwipeActionSelect(swipeAction, item, $event)\"\n >\n <div class=\"item-content\">\n <kirby-icon\n *ngIf=\"_getSwipeActionIcon(swipeAction, item)\"\n size=\"sm\"\n [name]=\"_getSwipeActionIcon(swipeAction, item)\"\n >\n </kirby-icon>\n <ion-label>\n {{ _getSwipeActionTitle(swipeAction, item) }}\n </ion-label>\n </div>\n </ion-item-option>\n </ng-container>\n </div>\n </ion-item-options>\n</ng-template>\n",
|
|
6673
|
-
styles: [":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}
|
|
6645
|
+
styles: [":host{display:block}.list{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);background:transparent;contain:inherit;padding:0}ion-list-header{background-color:var(--kirby-white);border-bottom:1px solid var(--kirby-background-color);padding:0;text-transform:inherit;letter-spacing:inherit;font-weight:inherit;font-size:inherit;min-height:0;overflow:inherit}ion-item{--background:var(--kirby-white);--background-activated:var(--kirby-white-shade);--background-hover:var(--kirby-background-color);--background-focused:var(--kirby-background-color);--inner-border-width:0;--ion-safe-area-right:0;--min-height:56px;--padding-bottom:8px;--padding-end:16px;--padding-start:16px;--padding-top:8px;display:flex;font-size:14px;min-height:56px;overflow:visible;width:100%}ion-item-divider{font-weight:inherit}ion-item-sliding.item-sliding-active-slide{-webkit-backface-visibility:hidden;backface-visibility:hidden;transform:translateZ(0)}ion-item-sliding.light{--kirby-item-background:var(--kirby-light);--kirby-item-background-activated:var(--kirby-light-shade);--kirby-item-background-focused:var(--kirby-light-shade);--kirby-item-background-hover:var(--kirby-light-tint)}ion-item-sliding.light ion-item{--background:var(--kirby-light);--color:var(--kirby-light-contrast);--background-activated:var(--kirby-light-shade);--background-focused:var(--kirby-light-shade);--background-hover:var(--kirby-light-tint)}ion-item-group{margin-bottom:24px}ion-item-group:last-of-type{margin-bottom:0}ion-item-divider{--inner-padding-end:0;--color:unset;background-color:transparent;border-color:transparent;min-height:0;padding:0 16px 8px}.footer{background-color:var(--kirby-white);border-top:1px solid var(--kirby-background-color);display:flex;align-items:center;justify-content:space-between;width:100%}.loading,.no-more-items{width:100%;padding:24px 0;text-align:center}.swipe-action{display:flex;color:var(--kirby-black);background-color:transparent}.swipe-action .primary{background-color:var(--kirby-primary);color:var(--kirby-primary-contrast)}.swipe-action .secondary{background-color:var(--kirby-secondary);color:var(--kirby-secondary-contrast)}.swipe-action .tertiary{background-color:var(--kirby-tertiary);color:var(--kirby-tertiary-contrast)}.swipe-action .success{background-color:var(--kirby-success);color:var(--kirby-success-contrast)}.swipe-action .warning{background-color:var(--kirby-warning);color:var(--kirby-warning-contrast)}.swipe-action .danger{background-color:var(--kirby-danger);color:var(--kirby-danger-contrast)}.swipe-action .light{background-color:var(--kirby-light);color:var(--kirby-light-contrast)}.swipe-action .medium{background-color:var(--kirby-medium);color:var(--kirby-medium-contrast)}.swipe-action .dark{background-color:var(--kirby-dark);color:var(--kirby-dark-contrast)}.swipe-action ion-item-option{height:100%;display:inline-block;text-align:center}.swipe-action .item-content{display:inline-grid;min-width:70px;flex-direction:column}.swipe-action .item-content ion-label{--background:unset;--color:unset}ion-item-options[side=end]{border-bottom-width:0}:host-context(.has-sections) .list{box-shadow:none}:host-context(.has-sections) .list-items{box-shadow:0 5px 10px -10px rgba(28,28,28,.3),0 0 5px 0 rgba(28,28,28,.08);border-radius:16px}:host-context(.has-sections) .footer{background-color:transparent;border-top:none}:host-context(.has-sections) ion-list-header{background-color:transparent;border-bottom:none}:host-context(.shape-rounded) .list,:host-context(.shape-rounded) .list-items{border-radius:16px}:host-context(.shape-rounded) ion-item-sliding.first,:host-context(.shape-rounded) ion-item.first,:host-context(.shape-rounded) ion-list-header{border-top-left-radius:16px;border-top-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-header ion-item,:host-context(.shape-rounded):not(.has-sections) .has-header ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-top-left-radius:0;border-top-right-radius:0}:host-context(.shape-rounded) .footer,:host-context(.shape-rounded) ion-item-sliding.last,:host-context(.shape-rounded) ion-item.last{border-bottom-left-radius:16px;border-bottom-right-radius:16px;-webkit-mask-image:-webkit-radial-gradient(#fff,#000)}:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item,:host-context(.shape-rounded):not(.has-sections) .has-footer ion-item-sliding,:host-context(.shape-rounded) ion-item-sliding>ion-item{border-bottom-left-radius:0;border-bottom-right-radius:0}:host-context(.shape-none) .list,:host-context(.shape-none) .list-items{box-shadow:none;border-radius:unset}:host-context(.shape-none) .list ion-item,:host-context(.shape-none) .list ion-item-sliding{--padding-start:0;--padding-end:0;--padding-top:0;--padding-bottom:0;--inner-padding-start:0;--inner-padding-end:0;--inner-padding-top:0;--inner-padding-bottom:0;--background:none;--background-activated:none;--background-hover:none;--background-focused:none;overflow:visible}:host-context(.item-spacing) .list kirby-list-item{margin-bottom:16px}:host-context(.item-spacing) .list kirby-list-item:last-child,:host-context(.item-spacing) .list kirby-list-item>ion-item{margin-bottom:0}", ":host{overflow:hidden}:host-context(.has-divider) ion-item-sliding:not(.last){border-bottom:1px solid var(--kirby-background-color)}"]
|
|
6674
6646
|
},] }
|
|
6675
6647
|
];
|
|
6676
6648
|
/** @nocollapse */
|
|
@@ -6713,6 +6685,15 @@ ListItemColorDirective.propDecorators = {
|
|
|
6713
6685
|
color: [{ type: HostBinding, args: ['class',] }]
|
|
6714
6686
|
};
|
|
6715
6687
|
|
|
6688
|
+
class ListExperimentalComponent {
|
|
6689
|
+
}
|
|
6690
|
+
ListExperimentalComponent.decorators = [
|
|
6691
|
+
{ type: Component, args: [{
|
|
6692
|
+
selector: 'kirby-list-experimental',
|
|
6693
|
+
template: "<ion-list>\n <ng-content></ng-content>\n</ion-list>\n"
|
|
6694
|
+
},] }
|
|
6695
|
+
];
|
|
6696
|
+
|
|
6716
6697
|
class ReorderEvent {
|
|
6717
6698
|
constructor(ev, parentItem) {
|
|
6718
6699
|
this.origEvent = ev;
|
|
@@ -7637,7 +7618,7 @@ TabsModule.decorators = [
|
|
|
7637
7618
|
},] }
|
|
7638
7619
|
];
|
|
7639
7620
|
|
|
7640
|
-
var __awaiter$
|
|
7621
|
+
var __awaiter$8 = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
7641
7622
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
7642
7623
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
7643
7624
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -7651,7 +7632,7 @@ class ToastHelper {
|
|
|
7651
7632
|
this.toastController = toastController;
|
|
7652
7633
|
}
|
|
7653
7634
|
showToast(config) {
|
|
7654
|
-
return __awaiter$
|
|
7635
|
+
return __awaiter$8(this, void 0, void 0, function* () {
|
|
7655
7636
|
const toast = yield this.toastController.create({
|
|
7656
7637
|
animated: config.animated,
|
|
7657
7638
|
message: config.message,
|
|
@@ -8255,6 +8236,7 @@ const exportedDeclarations = [
|
|
|
8255
8236
|
ListHeaderDirective,
|
|
8256
8237
|
ListHeaderComponent,
|
|
8257
8238
|
ListFooterDirective,
|
|
8239
|
+
ListExperimentalComponent,
|
|
8258
8240
|
];
|
|
8259
8241
|
const declarations = [
|
|
8260
8242
|
...exportedDeclarations,
|
|
@@ -8267,7 +8249,7 @@ class ListModule {
|
|
|
8267
8249
|
ListModule.decorators = [
|
|
8268
8250
|
{ type: NgModule, args: [{
|
|
8269
8251
|
declarations: declarations,
|
|
8270
|
-
imports: [CommonModule, IconModule, IonicModule, SpinnerModule
|
|
8252
|
+
imports: [CommonModule, IconModule, IonicModule, SpinnerModule],
|
|
8271
8253
|
exports: exportedDeclarations,
|
|
8272
8254
|
providers: [],
|
|
8273
8255
|
},] }
|
|
@@ -8443,6 +8425,7 @@ const exportedDeclarations$1 = [
|
|
|
8443
8425
|
RadioGroupComponent,
|
|
8444
8426
|
RangeComponent,
|
|
8445
8427
|
ElementAsButtonDirective,
|
|
8428
|
+
ItemGroupComponent,
|
|
8446
8429
|
];
|
|
8447
8430
|
const declarations$1 = [
|
|
8448
8431
|
...exportedDeclarations$1,
|
|
@@ -8509,7 +8492,6 @@ KirbyModule.decorators = [
|
|
|
8509
8492
|
imports: [
|
|
8510
8493
|
CommonModule,
|
|
8511
8494
|
RouterModule,
|
|
8512
|
-
UiScrollModule,
|
|
8513
8495
|
IonicModule.forRoot({
|
|
8514
8496
|
mode: 'ios',
|
|
8515
8497
|
inputShims: true,
|
|
@@ -8534,5 +8516,5 @@ KirbyModule.ctorParameters = () => [
|
|
|
8534
8516
|
* Generated bundle index. Do not edit.
|
|
8535
8517
|
*/
|
|
8536
8518
|
|
|
8537
|
-
export { AccordionDirective, AccordionItemComponent, ActionSheetComponent, AppComponent, AppModule, AvatarComponent, AvatarSize, KirbyBadge as BadgeComponent, ButtonComponent, ButtonSize, COMPONENT_PROPS, CalendarComponent, CardComponent, CardFooterComponent, CardHeaderComponent, ChartComponent, ChartDeprecatedComponent, ChartDeprecatedType, CheckboxComponent, ChipComponent, ComponentLoaderDirective, DateInputDirective, DecimalMaskDirective, DividerComponent, DropdownComponent, EmptyStateComponent, FabSheetComponent, FitHeadingDirective, FitHeadingModule, FlagComponent, FormFieldComponent, FormFieldMessageComponent, GridCardConfiguration, GridComponent, GroupByPipe, HorizontalDirection, ICON_SETTINGS, IconComponent, IconModule, IconRegistryService, IconSize, InfiniteScrollDirective, InputComponent, InputCounterComponent, InputSize, ItemComponent, ItemModule, ItemSize, KeyHandlerDirective, KirbyAnimation, KirbyModule, LabelComponent, ListComponent, ListFlexItemDirective, ListFooterDirective, ListHeaderComponent, ListHeaderDirective, ListItemColorDirective, ListItemComponent, ListItemDirective, ListItemTemplateDirective, ListSectionHeaderComponent, ListSectionHeaderDirective, LoadingOverlayComponent, LoadingOverlayService, Modal, ModalController, ModalFooterComponent, PageActionsComponent, PageActionsDirective, PageComponent, PageContentComponent, PageContentDirective, PageFooterComponent, PageModule, PageProgressComponent, PageTitleComponent, PageTitleDirective, PageToolbarTitleDirective, PlatformService, PopoverComponent, ProgressCircleComponent, RadioComponent, RadioGroupComponent, RangeComponent, ReorderEvent, ReorderListComponent, ResizeObserverFactory, ResizeObserverService, RouterOutletComponent, RouterOutletModule, ScssHelper, SegmentedControlComponent, SegmentedControlMode, SlideButtonComponent, SlideDirective, SlidesComponent, SpinnerComponent, StockChartDeprecatedComponent, TabButtonComponent, TabsComponent, TabsModule, TabsService, TextareaComponent, ThemeColorDirective, ToastController, ToggleButtonComponent, ToggleComponent, annotations, defaultIcons, isNumberArray, selectedTabClickEvent, stockChartDeprecatedOptions, ɵ0$6 as ɵ0, ProxyCmp as ɵa, AppModule as ɵb, ModalWrapperComponent as ɵba, Modal as ɵbb, ButtonComponent as ɵbc, IconComponent as ɵbd, IconRegistryService as ɵbe, ICON_SETTINGS as ɵbg, ResizeObserverService as ɵbh, ResizeObserverFactory as ɵbi, FitHeadingModule as ɵbj, FitHeadingDirective as ɵbk, LineClampHelper as ɵbl, SpinnerModule as ɵbm, SpinnerComponent as ɵbn, TabsModule as ɵbo, IconModule as ɵbp, TabButtonComponent as ɵbq, ItemModule as ɵbr, ItemComponent as ɵbs, LabelComponent as ɵbt, ToggleButtonModule as ɵbu, ToggleButtonComponent as ɵbv, ListModule as ɵbw, ListComponent as ɵbx, ListHelper as ɵby, GroupByPipe as ɵbz, AppComponent as ɵc, InfiniteScrollDirective as ɵca, ListItemDirective as ɵcb, ListFlexItemDirective as ɵcc, ListItemTemplateDirective as ɵcd, ListHeaderDirective as ɵce, ListSectionHeaderDirective as ɵcf, ListFooterDirective as ɵcg, ListItemComponent as ɵch, ListSectionHeaderComponent as ɵci, ListHeaderComponent as ɵcj,
|
|
8519
|
+
export { AccordionDirective, AccordionItemComponent, ActionSheetComponent, AppComponent, AppModule, AvatarComponent, AvatarSize, KirbyBadge as BadgeComponent, ButtonComponent, ButtonSize, COMPONENT_PROPS, CalendarComponent, CardComponent, CardFooterComponent, CardHeaderComponent, ChartComponent, ChartDeprecatedComponent, ChartDeprecatedType, CheckboxComponent, ChipComponent, ComponentLoaderDirective, DateInputDirective, DecimalMaskDirective, DividerComponent, DropdownComponent, EmptyStateComponent, FabSheetComponent, FitHeadingDirective, FitHeadingModule, FlagComponent, FormFieldComponent, FormFieldMessageComponent, GridCardConfiguration, GridComponent, GroupByPipe, HorizontalDirection, ICON_SETTINGS, IconComponent, IconModule, IconRegistryService, IconSize, InfiniteScrollDirective, InputComponent, InputCounterComponent, InputSize, ItemComponent, ItemGroupComponent, ItemModule, ItemSize, KeyHandlerDirective, KirbyAnimation, KirbyModule, LabelComponent, ListComponent, ListExperimentalComponent, ListFlexItemDirective, ListFooterDirective, ListHeaderComponent, ListHeaderDirective, ListItemColorDirective, ListItemComponent, ListItemDirective, ListItemTemplateDirective, ListSectionHeaderComponent, ListSectionHeaderDirective, LoadingOverlayComponent, LoadingOverlayService, Modal, ModalController, ModalFooterComponent, PageActionsComponent, PageActionsDirective, PageComponent, PageContentComponent, PageContentDirective, PageFooterComponent, PageModule, PageProgressComponent, PageTitleComponent, PageTitleDirective, PageToolbarTitleDirective, PlatformService, PopoverComponent, ProgressCircleComponent, RadioComponent, RadioGroupComponent, RangeComponent, ReorderEvent, ReorderListComponent, ResizeObserverFactory, ResizeObserverService, RouterOutletComponent, RouterOutletModule, ScssHelper, SegmentedControlComponent, SegmentedControlMode, SlideButtonComponent, SlideDirective, SlidesComponent, SpinnerComponent, StockChartDeprecatedComponent, TabButtonComponent, TabsComponent, TabsModule, TabsService, TextareaComponent, ThemeColorDirective, ToastController, ToggleButtonComponent, ToggleComponent, annotations, defaultIcons, isNumberArray, selectedTabClickEvent, stockChartDeprecatedOptions, ɵ0$6 as ɵ0, ProxyCmp as ɵa, AppModule as ɵb, ModalWrapperComponent as ɵba, Modal as ɵbb, ButtonComponent as ɵbc, IconComponent as ɵbd, IconRegistryService as ɵbe, ICON_SETTINGS as ɵbg, ResizeObserverService as ɵbh, ResizeObserverFactory as ɵbi, FitHeadingModule as ɵbj, FitHeadingDirective as ɵbk, LineClampHelper as ɵbl, SpinnerModule as ɵbm, SpinnerComponent as ɵbn, TabsModule as ɵbo, IconModule as ɵbp, TabButtonComponent as ɵbq, ItemModule as ɵbr, ItemComponent as ɵbs, LabelComponent as ɵbt, ToggleButtonModule as ɵbu, ToggleButtonComponent as ɵbv, ListModule as ɵbw, ListComponent as ɵbx, ListHelper as ɵby, GroupByPipe as ɵbz, AppComponent as ɵc, InfiniteScrollDirective as ɵca, ListItemDirective as ɵcb, ListFlexItemDirective as ɵcc, ListItemTemplateDirective as ɵcd, ListHeaderDirective as ɵce, ListSectionHeaderDirective as ɵcf, ListFooterDirective as ɵcg, ListItemComponent as ɵch, ListSectionHeaderComponent as ɵci, ListHeaderComponent as ɵcj, ListExperimentalComponent as ɵck, ListItemColorDirective as ɵcl, ChartModule as ɵcm, ChartComponent as ɵcn, ChartJSService as ɵco, ChartConfigService as ɵcp, CardComponent as ɵcq, CardHeaderComponent as ɵcr, CardFooterComponent as ɵcs, ChartDeprecatedComponent as ɵct, ChartDeprecatedHelper as ɵcu, DONUT_OPTIONS as ɵcv, DonutOptions as ɵcw, AREASPLINE_OPTIONS as ɵcx, AreaSplineOptions as ɵcy, TIMESERIES_OPTIONS as ɵcz, RouterOutletComponent as ɵd, TimeSeriesOptions as ɵda, ACTIVITYGAUGE_OPTIONS as ɵdb, ActivityGaugeOptions as ɵdc, StockChartDeprecatedComponent as ɵdd, GridComponent as ɵde, BreakpointHelperService as ɵdf, ComponentLoaderDirective as ɵdg, AvatarComponent as ɵdh, CalendarComponent as ɵdi, CalendarHelper as ɵdj, CheckboxComponent as ɵdk, ActionSheetComponent as ɵdl, ModalFooterComponent as ɵdm, ModalRouterLinkDirective as ɵdn, SegmentedControlComponent as ɵdo, ChipComponent as ɵdp, ThemeColorDirective as ɵdq, DateInputDirective as ɵdr, DecimalMaskDirective as ɵds, SlideButtonComponent as ɵdt, ToggleComponent as ɵdu, EmptyStateComponent as ɵdv, FormFieldComponent as ɵdw, InputCounterComponent as ɵdx, RadioGroupComponent as ɵdy, RadioComponent as ɵdz, ModalController as ɵe, InputComponent as ɵea, TextareaComponent as ɵeb, FabSheetComponent as ɵec, DividerComponent as ɵed, ReorderListComponent as ɵee, DropdownComponent as ɵef, PopoverComponent as ɵeg, KeyboardHandlerService as ɵeh, LoadingOverlayComponent as ɵei, ProgressCircleComponent as ɵej, FlagComponent as ɵek, SlideDirective as ɵel, SlidesComponent as ɵem, AccordionDirective as ɵen, AccordionItemComponent as ɵeo, RangeComponent as ɵep, ElementAsButtonDirective as ɵeq, ItemGroupComponent as ɵer, KeyHandlerDirective as ɵes, FormFieldMessageComponent as ɵet, AlertComponent as ɵeu, ModalCompactWrapperComponent as ɵev, ProgressCircleRingComponent as ɵew, ToastHelper as ɵex, ToastController as ɵey, LoadingOverlayService as ɵez, ModalHelper as ɵf, appInitialize as ɵfa, customElementsInitializer as ɵfb, ModalAnimationBuilderService as ɵg, PlatformService as ɵh, WindowRef as ɵi, ActionSheetHelper as ɵj, AlertHelper as ɵk, ModalNavigationService as ɵl, RouterOutletModule as ɵm, PageModule as ɵn, PageTitleDirective as ɵo, PageToolbarTitleDirective as ɵp, PageActionsDirective as ɵq, PageContentDirective as ɵr, PageProgressComponent as ɵs, PageTitleComponent as ɵt, PageContentComponent as ɵu, PageActionsComponent as ɵv, PageComponent as ɵw, TabsComponent as ɵx, TabsService as ɵy, PageFooterComponent as ɵz };
|
|
8538
8520
|
//# sourceMappingURL=kirbydesign-designsystem.js.map
|