@firestitch/list 9.9.12 → 9.10.0
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/app/components/body/row/cell/cell.component.d.ts +1 -1
- package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +3 -0
- package/app/components/footer/footer-row/footer-row.component.d.ts +2 -0
- package/app/components/footer/footer.component.d.ts +2 -0
- package/bundles/firestitch-list.umd.js +20 -3
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/bundles/firestitch-list.umd.min.js +2 -2
- package/bundles/firestitch-list.umd.min.js.map +1 -1
- package/esm2015/app/components/body/row/cell/cell.component.js +1 -1
- package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +11 -2
- package/esm2015/app/components/footer/footer-row/footer-row.component.js +6 -2
- package/esm2015/app/components/footer/footer.component.js +6 -2
- package/esm2015/app/components/list/list.component.js +2 -2
- package/esm5/app/components/body/row/cell/cell.component.js +1 -1
- package/esm5/app/components/footer/footer-row/footer-cell/footer-cell.component.js +11 -2
- package/esm5/app/components/footer/footer-row/footer-row.component.js +6 -2
- package/esm5/app/components/footer/footer.component.js +6 -2
- package/esm5/app/components/list/list.component.js +2 -2
- package/fesm2015/firestitch-list.js +20 -3
- package/fesm2015/firestitch-list.js.map +1 -1
- package/fesm5/firestitch-list.js +20 -3
- package/fesm5/firestitch-list.js.map +1 -1
- package/firestitch-list.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ export declare class FsCellComponent implements OnInit, OnChanges, OnDestroy {
|
|
|
14
14
|
ngOnInit(): void;
|
|
15
15
|
ngOnChanges(changes: SimpleChanges): void;
|
|
16
16
|
ngOnDestroy(): void;
|
|
17
|
-
|
|
17
|
+
protected _initCellContext(): void;
|
|
18
18
|
private _initCellTemplate;
|
|
19
19
|
private _listenGroupOpen;
|
|
20
20
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, KeyValueDiffers, Renderer2 } from '@angular/core';
|
|
2
2
|
import { FsRowComponent } from '../../body/row/row.component';
|
|
3
3
|
import { ReorderController, ReorderPosition } from '../../../classes/reorder-controller';
|
|
4
|
+
import { Row } from '../../../models/row';
|
|
4
5
|
export declare class FsFooterRowComponent extends FsRowComponent {
|
|
5
6
|
hasRowActions: boolean;
|
|
7
|
+
rows: Row[];
|
|
6
8
|
readonly ReorderPosition: typeof ReorderPosition;
|
|
7
9
|
constructor(el: ElementRef, reorderController: ReorderController, cdRef: ChangeDetectorRef, differs: KeyValueDiffers, renderer: Renderer2);
|
|
8
10
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { Column } from '../../models/column.model';
|
|
2
2
|
import { SelectionController } from '../../classes/selection-controller';
|
|
3
|
+
import { Row } from '../../models/row';
|
|
3
4
|
export declare class FsFooterComponent {
|
|
4
5
|
hasRowActions: boolean;
|
|
5
6
|
columns: Column[];
|
|
6
7
|
selection: SelectionController;
|
|
8
|
+
rows: Row[];
|
|
7
9
|
constructor();
|
|
8
10
|
}
|
|
@@ -4566,7 +4566,7 @@
|
|
|
4566
4566
|
FsListComponent = __decorate([
|
|
4567
4567
|
core.Component({
|
|
4568
4568
|
selector: 'fs-list',
|
|
4569
|
-
template: "<div class=\"fs-list-container\"\
|
|
4569
|
+
template: "<div class=\"fs-list-container\"\n [ngClass]=\"{ 'has-filter-input': list.filterInput,\n 'has-filters': list.filterConfig?.items.length,\n 'has-heading': list.heading,\n 'has-status': list.status,\n 'has-chips': list.chips,\n 'has-actions': list.actions.hasActions,\n 'first-load': firstLoad,\n 'loading': list.loading$ | async }\">\n <ng-template [ngTemplateOutlet]=\"listContainerContent\"></ng-template>\n</div>\n\n<ng-template #listContainerContent>\n <ng-container *ngIf=\"list.dataController.visibleRows$ | async as listData\">\n <!-- Header -->\n <div class=\"fs-list-header-container\">\n\n <div class=\"fs-list-header\"\n [ngClass]=\"{ 'no-wrap': reorderController.manualReorderActivated$ || !list.filterConfig?.items.length }\">\n <div class=\"heading-container\">\n <h2 class=\"heading\" *ngIf=\"list.heading\">{{list.heading}}</h2>\n <span class=\"subheading\" *ngIf=\"list.subheading\">{{list.subheading}}</span>\n </div>\n <fs-filter\n class=\"fs-list-filter\"\n *ngIf=\"list.filterConfig\"\n [filter]=\"list.filterConfig\"\n [showSortBy]=\"!list.status\"\n [showFilterInput]=\"list.filterInput\"\n (ready)=\"filterReady()\">\n\n <ng-template fsFilterStatusBar>\n <ng-container *ngIf=\"\n list.paging &&\n !(reorderController.manualReorderActivated$ | async) &&\n (!reorderController.enabled || reorderController.status) &&\n ((list.scrollable && list.scrollable.status) || !list.scrollable)\">\n <!-- Status -->\n <fs-list-status\n class=\"fs-list-status\"\n [ngClass]=\"{ 'hidden-mobile': !list.status }\"\n [rows]=\"listData\"\n [sorting]=\"list.sorting\"\n [paging]=\"list.paging\"\n [firstLoad]=\"firstLoad\"\n [scrollable]=\"list.scrollable\">\n </fs-list-status>\n </ng-container>\n </ng-template>\n </fs-filter>\n </div>\n </div>\n\n <!-- Table implementation -->\n <div class=\"fs-list-table-container\">\n <table class=\"fs-list-table\" role=\"grid\" *ngIf=\"!firstLoad && listData.length > 0 && !list.emptyStateEnabled\">\n <thead fs-list-head\n class=\"fs-list-head\"\n role=\"rowgroup\"\n *ngIf=\"list.columns.hasHeader\"\n [ngClass]=\"list.columns.theadClass\"\n [columns]=\"list.columns.visibleColumns\"\n [sorting]=\"list.sorting\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n >\n </thead>\n\n <tbody fs-list-body\n fsListDraggableList\n class=\"fs-list-body\"\n role=\"rowgroup\"\n [class.disabled]=\"!!(reorderController.reorderDisabled$ | async)\"\n [rows]=\"listData\"\n [rowActionsRaw]=\"list.rowActionsRaw\"\n [groupActionsRaw]=\"list.groupActionsRaw\"\n [hasRowActions]=\"list.hasRowActions\"\n [rowEvents]=\"list.rowEvents\"\n [rowClass]=\"list.rowClass\"\n [columns]=\"list.columns.visibleColumns\"\n [restoreMode]=\"list.restoreMode\"\n [selection]=\"list.selection\"\n [rowRemoved]=\"rowRemoved\"\n >\n </tbody>\n\n <tfoot fs-list-footer\n class=\"fs-list-footer\"\n *ngIf=\"list.columns.hasFooter\"\n [columns]=\"list.columns.visibleColumns\"\n [selection]=\"list.selection\"\n [hasRowActions]=\"list.hasRowActions\"\n [rows]=\"list.dataController.visibleRows\">\n </tfoot>\n </table>\n <fs-list-loader\n *ngIf=\"firstLoad\"\n [columns]=\"list.columns.columns\"\n [loaderLines]=\"loaderLines\">\n </fs-list-loader>\n </div>\n\n <fs-list-pagination\n *ngIf=\"paginatorVisible\"\n class=\"fs-list-pagination\"\n [rows]=\"listData\"\n [pagination]=\"list.paging\">\n </fs-list-pagination>\n\n\n <ng-container *ngIf=\"!firstLoad\">\n <div\n *ngIf=\"listData.length === 0\"\n class=\"fs-list-no-results-container\">\n <div\n *ngIf=\"list.noResults?.message && !list.emptyStateEnabled\"\n class=\"fs-list-no-results\">\n {{ list.noResults?.message }}\n </div>\n <ng-container *ngIf=\"list.emptyStateEnabled\">\n <ng-template [ngTemplateOutlet]=\"list.emptyStateTemplate\"></ng-template>\n </ng-container>\n </div>\n </ng-container>\n </ng-container>\n</ng-template>\n\n",
|
|
4570
4570
|
changeDetection: core.ChangeDetectionStrategy.OnPush,
|
|
4571
4571
|
providers: [
|
|
4572
4572
|
GroupExpandNotifierService,
|
|
@@ -5488,10 +5488,14 @@
|
|
|
5488
5488
|
core.Input(),
|
|
5489
5489
|
__metadata("design:type", SelectionController)
|
|
5490
5490
|
], FsFooterComponent.prototype, "selection", void 0);
|
|
5491
|
+
__decorate([
|
|
5492
|
+
core.Input(),
|
|
5493
|
+
__metadata("design:type", Array)
|
|
5494
|
+
], FsFooterComponent.prototype, "rows", void 0);
|
|
5491
5495
|
FsFooterComponent = __decorate([
|
|
5492
5496
|
core.Component({
|
|
5493
5497
|
selector: '[fs-list-footer]',
|
|
5494
|
-
template: "<tr fs-list-footer-row\n [columns]=\"columns\"\n [hasRowActions]=\"hasRowActions\"\n [selection]=\"selection\"\n></tr>\n",
|
|
5498
|
+
template: "<tr fs-list-footer-row\n [columns]=\"columns\"\n [hasRowActions]=\"hasRowActions\"\n [selection]=\"selection\"\n [rows]=\"rows\"\n></tr>\n",
|
|
5495
5499
|
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
5496
5500
|
}),
|
|
5497
5501
|
__metadata("design:paramtypes", [])
|
|
@@ -5517,10 +5521,14 @@
|
|
|
5517
5521
|
core.Input(),
|
|
5518
5522
|
__metadata("design:type", Boolean)
|
|
5519
5523
|
], FsFooterRowComponent.prototype, "hasRowActions", void 0);
|
|
5524
|
+
__decorate([
|
|
5525
|
+
core.Input(),
|
|
5526
|
+
__metadata("design:type", Array)
|
|
5527
|
+
], FsFooterRowComponent.prototype, "rows", void 0);
|
|
5520
5528
|
FsFooterRowComponent = __decorate([
|
|
5521
5529
|
core.Component({
|
|
5522
5530
|
selector: '[fs-list-footer-row]',
|
|
5523
|
-
template: "<td *ngIf=\"reorderController.leftReorderActivated$ | async\" class=\"fs-list-col drag-col\"></td>\n\n<td *ngIf=\"selection\" class=\"fs-list-col fs-list-col-selection\"></td>\n<ng-container *ngFor=\"let column of columns; trackBy: trackByFn\">\n <td fs-list-footer-cell\n *ngIf=\"!column.footerColspanned\"\n [column]=\"column\"\n [
|
|
5531
|
+
template: "<td *ngIf=\"reorderController.leftReorderActivated$ | async\" class=\"fs-list-col drag-col\"></td>\n\n<td *ngIf=\"selection\" class=\"fs-list-col fs-list-col-selection\"></td>\n<ng-container *ngFor=\"let column of columns; trackBy: trackByFn\">\n <td fs-list-footer-cell\n *ngIf=\"!column.footerColspanned\"\n [column]=\"column\"\n [rows]=\"rows\"\n [ngClass]=\"column.footerConfigs.classesArray\"\n [attr.colspan]=\"column.footerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </td>\n</ng-container>\n\n<!-- Drag -->\n<td *ngIf=\"reorderController.rightReorderActivated$ | async\" class=\"fs-list-col row-actions\"></td>\n\n<!-- Row Actions -->\n<td *ngIf=\"hasRowActions && !(reorderController.enabled && reorderController.strategy === ReorderStrategy.Manual)\" class=\"fs-list-col drag-col\"></td>\n",
|
|
5524
5532
|
changeDetection: core.ChangeDetectionStrategy.OnPush
|
|
5525
5533
|
}),
|
|
5526
5534
|
__metadata("design:paramtypes", [core.ElementRef,
|
|
@@ -5537,6 +5545,15 @@
|
|
|
5537
5545
|
function FsFooterCellComponent() {
|
|
5538
5546
|
return _super.call(this) || this;
|
|
5539
5547
|
}
|
|
5548
|
+
FsFooterCellComponent.prototype._initCellContext = function () {
|
|
5549
|
+
this.cellContext.column = this.column;
|
|
5550
|
+
this.cellContext.$implicit = this.rows
|
|
5551
|
+
.map(function (row) { return row.data; });
|
|
5552
|
+
};
|
|
5553
|
+
__decorate([
|
|
5554
|
+
core.Input(),
|
|
5555
|
+
__metadata("design:type", Array)
|
|
5556
|
+
], FsFooterCellComponent.prototype, "rows", void 0);
|
|
5540
5557
|
FsFooterCellComponent = __decorate([
|
|
5541
5558
|
core.Component({
|
|
5542
5559
|
selector: '[fs-list-footer-cell]',
|