@firestitch/list 13.1.1 → 13.2.1
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/classes/actions-controller.d.ts +20 -20
- package/app/classes/columns-controller.d.ts +71 -71
- package/app/classes/data-controller.d.ts +91 -91
- package/app/classes/external-params-controller.d.ts +32 -32
- package/app/classes/index.d.ts +2 -2
- package/app/classes/list-controller.d.ts +194 -194
- package/app/classes/pagination-controller.d.ts +199 -198
- package/app/classes/persistance-controller.d.ts +10 -10
- package/app/classes/reorder-controller.d.ts +67 -68
- package/app/classes/selection-controller.d.ts +155 -155
- package/app/classes/sorting-controller.d.ts +70 -70
- package/app/components/body/body.component.d.ts +28 -28
- package/app/components/body/row/actions/actions.component.d.ts +36 -36
- package/app/components/body/row/cell/cell.component.d.ts +22 -22
- package/app/components/body/row/inline-action/inline-action.component.d.ts +13 -13
- package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
- package/app/components/body/row/row.component.d.ts +85 -85
- package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
- package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
- package/app/components/footer/footer-row/footer-row.component.d.ts +14 -14
- package/app/components/footer/footer.component.d.ts +15 -15
- package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
- package/app/components/head/head.component.d.ts +49 -49
- package/app/components/list/list.component.d.ts +128 -128
- package/app/components/loader/loader.component.d.ts +14 -14
- package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
- package/app/components/pagination/pagination.component.d.ts +14 -14
- package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
- package/app/components/status/status.component.d.ts +21 -21
- package/app/directives/cell/cell.directive.d.ts +8 -8
- package/app/directives/column/column.directive.d.ts +37 -37
- package/app/directives/content/content.directive.d.ts +5 -5
- package/app/directives/content-init/content-init.directive.d.ts +9 -9
- package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
- package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
- package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
- package/app/directives/footer/footer.directive.d.ts +8 -8
- package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
- package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
- package/app/directives/group-header/group-header.directive.d.ts +6 -6
- package/app/directives/header/header.directive.d.ts +8 -8
- package/app/directives/heading/heading.directive.d.ts +5 -5
- package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
- package/app/directives/index.d.ts +3 -3
- package/app/directives/subheading/subheading.directive.d.ts +5 -5
- package/app/enums/{button-type.enum.d.ts → action-type.enum.d.ts} +7 -7
- package/app/enums/page-change-type.enum.d.ts +4 -4
- package/app/enums/pagination-strategy.enum.d.ts +5 -5
- package/app/enums/row-type.enum.d.ts +6 -6
- package/app/enums/state.enum.d.ts +9 -9
- package/app/fs-list.module.d.ts +60 -60
- package/app/fs-list.providers.d.ts +3 -3
- package/app/interfaces/cellconfig.interface.d.ts +5 -5
- package/app/interfaces/column-config.interface.d.ts +2 -2
- package/app/interfaces/draggable-list.interface.d.ts +7 -7
- package/app/interfaces/external-params.interface.d.ts +13 -13
- package/app/interfaces/index.d.ts +4 -4
- package/app/interfaces/listconfig.interface.d.ts +252 -249
- package/app/interfaces/pagination-state.interface.d.ts +9 -9
- package/app/interfaces/pagination.interface.d.ts +13 -13
- package/app/interfaces/sorting-change-event.interface.d.ts +4 -4
- package/app/models/column-async-attribute.d.ts +5 -5
- package/app/models/column-attributes.d.ts +39 -39
- package/app/models/column.model.d.ts +61 -61
- package/app/models/row/base-row.d.ts +13 -13
- package/app/models/row/child-row.d.ts +12 -12
- package/app/models/row/group-footer-row.d.ts +10 -10
- package/app/models/row/group-row.d.ts +16 -16
- package/app/models/row/simple-row.d.ts +5 -5
- package/app/models/row-action.model.d.ts +29 -29
- package/app/models/row.d.ts +34 -34
- package/app/models/styleConfig.model.d.ts +31 -31
- package/app/pipes/action-label.d.ts +8 -8
- package/app/pipes/index.d.ts +1 -1
- package/app/services/group-expand-notifier.service.d.ts +11 -11
- package/esm2020/app/classes/actions-controller.mjs +55 -55
- package/esm2020/app/classes/columns-controller.mjs +205 -205
- package/esm2020/app/classes/data-controller.mjs +366 -366
- package/esm2020/app/classes/external-params-controller.mjs +146 -146
- package/esm2020/app/classes/index.mjs +3 -3
- package/esm2020/app/classes/list-controller.mjs +744 -744
- package/esm2020/app/classes/pagination-controller.mjs +491 -478
- package/esm2020/app/classes/persistance-controller.mjs +19 -19
- package/esm2020/app/classes/reorder-controller.mjs +182 -182
- package/esm2020/app/classes/selection-controller.mjs +467 -467
- package/esm2020/app/classes/sorting-controller.mjs +201 -201
- package/esm2020/app/components/body/body.component.mjs +64 -64
- package/esm2020/app/components/body/row/actions/actions.component.mjs +96 -96
- package/esm2020/app/components/body/row/cell/cell.component.mjs +107 -107
- package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +32 -32
- package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +45 -45
- package/esm2020/app/components/body/row/row.component.mjs +322 -323
- package/esm2020/app/components/customize-cols/customize-cols.component.mjs +68 -68
- package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -16
- package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +27 -27
- package/esm2020/app/components/footer/footer.component.mjs +30 -30
- package/esm2020/app/components/head/head-cell/head-cell.component.mjs +29 -29
- package/esm2020/app/components/head/head.component.mjs +102 -102
- package/esm2020/app/components/list/list.component.mjs +391 -391
- package/esm2020/app/components/loader/loader.component.mjs +40 -40
- package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +76 -76
- package/esm2020/app/components/pagination/pagination.component.mjs +37 -37
- package/esm2020/app/components/saved-filters/saved-filters.component.mjs +29 -29
- package/esm2020/app/components/status/status.component.mjs +66 -66
- package/esm2020/app/directives/cell/cell.directive.mjs +18 -18
- package/esm2020/app/directives/column/column.directive.mjs +120 -120
- package/esm2020/app/directives/content/content.directive.mjs +12 -12
- package/esm2020/app/directives/content-init/content-init.directive.mjs +21 -21
- package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +327 -327
- package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +77 -77
- package/esm2020/app/directives/empty-state/empty-state.directive.mjs +13 -13
- package/esm2020/app/directives/footer/footer.directive.mjs +18 -18
- package/esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +26 -26
- package/esm2020/app/directives/group-footer/group-footer.directive.mjs +13 -13
- package/esm2020/app/directives/group-header/group-header.directive.mjs +13 -13
- package/esm2020/app/directives/header/header.directive.mjs +18 -18
- package/esm2020/app/directives/heading/heading.directive.mjs +13 -13
- package/esm2020/app/directives/heading-container/heading-container.directive.mjs +13 -13
- package/esm2020/app/directives/index.mjs +4 -4
- package/esm2020/app/directives/subheading/subheading.directive.mjs +13 -13
- package/esm2020/app/enums/{button-type.enum.mjs → action-type.enum.mjs} +9 -9
- package/esm2020/app/enums/page-change-type.enum.mjs +6 -6
- package/esm2020/app/enums/pagination-strategy.enum.mjs +7 -7
- package/esm2020/app/enums/row-type.enum.mjs +7 -7
- package/esm2020/app/enums/state.enum.mjs +11 -11
- package/esm2020/app/fs-list.module.mjs +245 -245
- package/esm2020/app/fs-list.providers.mjs +4 -4
- package/esm2020/app/interfaces/cellconfig.interface.mjs +2 -2
- package/esm2020/app/interfaces/column-config.interface.mjs +1 -1
- package/esm2020/app/interfaces/draggable-list.interface.mjs +2 -2
- package/esm2020/app/interfaces/external-params.interface.mjs +2 -2
- package/esm2020/app/interfaces/index.mjs +5 -5
- package/esm2020/app/interfaces/listconfig.interface.mjs +2 -2
- package/esm2020/app/interfaces/pagination-state.interface.mjs +1 -1
- package/esm2020/app/interfaces/pagination.interface.mjs +2 -2
- package/esm2020/app/interfaces/sorting-change-event.interface.mjs +2 -2
- package/esm2020/app/models/column-async-attribute.mjs +13 -13
- package/esm2020/app/models/column-attributes.mjs +131 -131
- package/esm2020/app/models/column.model.mjs +163 -163
- package/esm2020/app/models/row/base-row.mjs +23 -23
- package/esm2020/app/models/row/child-row.mjs +28 -28
- package/esm2020/app/models/row/group-footer-row.mjs +20 -20
- package/esm2020/app/models/row/group-row.mjs +44 -44
- package/esm2020/app/models/row/simple-row.mjs +10 -10
- package/esm2020/app/models/row-action.model.mjs +90 -90
- package/esm2020/app/models/row.mjs +88 -88
- package/esm2020/app/models/styleConfig.model.mjs +75 -75
- package/esm2020/app/pipes/action-label.mjs +16 -16
- package/esm2020/app/pipes/index.mjs +1 -1
- package/esm2020/app/services/group-expand-notifier.service.mjs +26 -26
- package/esm2020/firestitch-list.mjs +4 -4
- package/esm2020/public_api.mjs +46 -46
- package/fesm2015/firestitch-list.mjs +5732 -5724
- package/fesm2015/firestitch-list.mjs.map +1 -1
- package/fesm2020/firestitch-list.mjs +5722 -5709
- package/fesm2020/firestitch-list.mjs.map +1 -1
- package/firestitch-list.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +41 -41
|
@@ -1,103 +1,103 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, ViewChild, ViewContainerRef, } from '@angular/core';
|
|
2
|
-
import { Subject } from 'rxjs';
|
|
3
|
-
import { filter, takeUntil } from 'rxjs/operators';
|
|
4
|
-
import { ReorderPosition, ReorderStrategy, } from '../../classes/reorder-controller';
|
|
5
|
-
import { SelectionChangeType, SelectionController } from '../../classes/selection-controller';
|
|
6
|
-
import { SortingController } from '../../classes/sorting-controller';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/checkbox";
|
|
9
|
-
import * as i2 from "./head-cell/head-cell.component";
|
|
10
|
-
import * as i3 from "@angular/common";
|
|
11
|
-
export class FsHeadComponent {
|
|
12
|
-
constructor(_cdRef) {
|
|
13
|
-
this._cdRef = _cdRef;
|
|
14
|
-
this.selectedAll = false;
|
|
15
|
-
this.ReorderStrategyEnum = ReorderStrategy;
|
|
16
|
-
this._destroy$ = new Subject();
|
|
17
|
-
}
|
|
18
|
-
get leftDragDropEnabled() {
|
|
19
|
-
return this.reorderEnabled
|
|
20
|
-
&& this.reorderPosition === ReorderPosition.Left
|
|
21
|
-
&& this.activeFiltersCount === 0;
|
|
22
|
-
}
|
|
23
|
-
get rightDragDropEnabled() {
|
|
24
|
-
return this.reorderEnabled
|
|
25
|
-
&& this.reorderPosition === ReorderPosition.Right
|
|
26
|
-
&& this.activeFiltersCount === 0;
|
|
27
|
-
}
|
|
28
|
-
ngOnInit() {
|
|
29
|
-
this._initSorting();
|
|
30
|
-
this._initSelection();
|
|
31
|
-
}
|
|
32
|
-
ngOnDestroy() {
|
|
33
|
-
this._destroy$.next();
|
|
34
|
-
this._destroy$.complete();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Select All Visible Rows
|
|
38
|
-
*
|
|
39
|
-
* @param event
|
|
40
|
-
*/
|
|
41
|
-
selectAll(event) {
|
|
42
|
-
this.selection.selectAllVisibleRows(event.checked);
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* Track By for improve change detection
|
|
46
|
-
*
|
|
47
|
-
* @param index
|
|
48
|
-
*/
|
|
49
|
-
trackByFn(index) {
|
|
50
|
-
return index;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Subscribe to sorting change
|
|
54
|
-
*/
|
|
55
|
-
_initSorting() {
|
|
56
|
-
this.sorting.sortingChanged$
|
|
57
|
-
.pipe(takeUntil(this._destroy$))
|
|
58
|
-
.subscribe(() => {
|
|
59
|
-
this._cdRef.detectChanges();
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Subscribe to selection change
|
|
64
|
-
*/
|
|
65
|
-
_initSelection() {
|
|
66
|
-
if (this.selection) {
|
|
67
|
-
this.selection.selectionChange$
|
|
68
|
-
.pipe(filter(({ type }) => (type === SelectionChangeType.AllVisibleSelectionChange
|
|
69
|
-
|| type === SelectionChangeType.SelectedAll
|
|
70
|
-
|| type === SelectionChangeType.RowSelectionChange)), takeUntil(this._destroy$))
|
|
71
|
-
.subscribe(({ type, payload: status }) => {
|
|
72
|
-
this.selectedAll = status;
|
|
73
|
-
this._cdRef.markForCheck();
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
FsHeadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsHeadComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
-
FsHeadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsHeadComponent, selector: "[fs-list-head]", inputs: { sorting: "sorting", columns: "columns", hasRowActions: "hasRowActions", selection: "selection", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy" }, viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n <th *ngIf=\"leftDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Selection -->\n <th *ngIf=\"selection && !(selection.disabled$ | async)\" class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox (change)=\"selectAll($event)\" [checked]=\"selectedAll\"></mat-checkbox>\n </th>\n\n <!-- Content -->\n <th \n fs-head-cell *ngFor=\"let column of columns; trackBy: trackByFn\"\n (click)=\"$event.stopPropagation(); sorting.sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n\n <!-- Drag -->\n <th *ngIf=\"rightDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Row Actions -->\n <th *ngIf=\"hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)\" class=\"fs-list-col row-actions\"></th>\n</tr>\n", styles: ["th.fs-list-col-selection{width:1%;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"], components: [{ type: i1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i2.FsHeadCellComponent, selector: "[fs-head-cell]" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsHeadComponent, decorators: [{
|
|
81
|
-
type: Component,
|
|
82
|
-
args: [{ selector: '[fs-list-head]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n <th *ngIf=\"leftDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Selection -->\n <th *ngIf=\"selection && !(selection.disabled$ | async)\" class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox (change)=\"selectAll($event)\" [checked]=\"selectedAll\"></mat-checkbox>\n </th>\n\n <!-- Content -->\n <th \n fs-head-cell *ngFor=\"let column of columns; trackBy: trackByFn\"\n (click)=\"$event.stopPropagation(); sorting.sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n\n <!-- Drag -->\n <th *ngIf=\"rightDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Row Actions -->\n <th *ngIf=\"hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)\" class=\"fs-list-col row-actions\"></th>\n</tr>\n", styles: ["th.fs-list-col-selection{width:1%;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"] }]
|
|
83
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { sorting: [{
|
|
84
|
-
type: Input
|
|
85
|
-
}], columns: [{
|
|
86
|
-
type: Input
|
|
87
|
-
}], hasRowActions: [{
|
|
88
|
-
type: Input
|
|
89
|
-
}], selection: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], activeFiltersCount: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], reorderEnabled: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], reorderPosition: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], reorderStrategy: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], rowsContainer: [{
|
|
100
|
-
type: ViewChild,
|
|
101
|
-
args: ['rowsContainer', { read: ViewContainerRef, static: true }]
|
|
102
|
-
}] } });
|
|
1
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, Input, ViewChild, ViewContainerRef, } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { filter, takeUntil } from 'rxjs/operators';
|
|
4
|
+
import { ReorderPosition, ReorderStrategy, } from '../../classes/reorder-controller';
|
|
5
|
+
import { SelectionChangeType, SelectionController } from '../../classes/selection-controller';
|
|
6
|
+
import { SortingController } from '../../classes/sorting-controller';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@angular/material/checkbox";
|
|
9
|
+
import * as i2 from "./head-cell/head-cell.component";
|
|
10
|
+
import * as i3 from "@angular/common";
|
|
11
|
+
export class FsHeadComponent {
|
|
12
|
+
constructor(_cdRef) {
|
|
13
|
+
this._cdRef = _cdRef;
|
|
14
|
+
this.selectedAll = false;
|
|
15
|
+
this.ReorderStrategyEnum = ReorderStrategy;
|
|
16
|
+
this._destroy$ = new Subject();
|
|
17
|
+
}
|
|
18
|
+
get leftDragDropEnabled() {
|
|
19
|
+
return this.reorderEnabled
|
|
20
|
+
&& this.reorderPosition === ReorderPosition.Left
|
|
21
|
+
&& this.activeFiltersCount === 0;
|
|
22
|
+
}
|
|
23
|
+
get rightDragDropEnabled() {
|
|
24
|
+
return this.reorderEnabled
|
|
25
|
+
&& this.reorderPosition === ReorderPosition.Right
|
|
26
|
+
&& this.activeFiltersCount === 0;
|
|
27
|
+
}
|
|
28
|
+
ngOnInit() {
|
|
29
|
+
this._initSorting();
|
|
30
|
+
this._initSelection();
|
|
31
|
+
}
|
|
32
|
+
ngOnDestroy() {
|
|
33
|
+
this._destroy$.next();
|
|
34
|
+
this._destroy$.complete();
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Select All Visible Rows
|
|
38
|
+
*
|
|
39
|
+
* @param event
|
|
40
|
+
*/
|
|
41
|
+
selectAll(event) {
|
|
42
|
+
this.selection.selectAllVisibleRows(event.checked);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Track By for improve change detection
|
|
46
|
+
*
|
|
47
|
+
* @param index
|
|
48
|
+
*/
|
|
49
|
+
trackByFn(index) {
|
|
50
|
+
return index;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Subscribe to sorting change
|
|
54
|
+
*/
|
|
55
|
+
_initSorting() {
|
|
56
|
+
this.sorting.sortingChanged$
|
|
57
|
+
.pipe(takeUntil(this._destroy$))
|
|
58
|
+
.subscribe(() => {
|
|
59
|
+
this._cdRef.detectChanges();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Subscribe to selection change
|
|
64
|
+
*/
|
|
65
|
+
_initSelection() {
|
|
66
|
+
if (this.selection) {
|
|
67
|
+
this.selection.selectionChange$
|
|
68
|
+
.pipe(filter(({ type }) => (type === SelectionChangeType.AllVisibleSelectionChange
|
|
69
|
+
|| type === SelectionChangeType.SelectedAll
|
|
70
|
+
|| type === SelectionChangeType.RowSelectionChange)), takeUntil(this._destroy$))
|
|
71
|
+
.subscribe(({ type, payload: status }) => {
|
|
72
|
+
this.selectedAll = status;
|
|
73
|
+
this._cdRef.markForCheck();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
FsHeadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsHeadComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
79
|
+
FsHeadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsHeadComponent, selector: "[fs-list-head]", inputs: { sorting: "sorting", columns: "columns", hasRowActions: "hasRowActions", selection: "selection", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy" }, viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n <th *ngIf=\"leftDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Selection -->\n <th *ngIf=\"selection && !(selection.disabled$ | async)\" class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox (change)=\"selectAll($event)\" [checked]=\"selectedAll\"></mat-checkbox>\n </th>\n\n <!-- Content -->\n <th \n fs-head-cell *ngFor=\"let column of columns; trackBy: trackByFn\"\n (click)=\"$event.stopPropagation(); sorting.sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n\n <!-- Drag -->\n <th *ngIf=\"rightDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Row Actions -->\n <th *ngIf=\"hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)\" class=\"fs-list-col row-actions\"></th>\n</tr>\n", styles: ["th.fs-list-col-selection{width:1%;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"], components: [{ type: i1.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i2.FsHeadCellComponent, selector: "[fs-head-cell]" }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i3.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsHeadComponent, decorators: [{
|
|
81
|
+
type: Component,
|
|
82
|
+
args: [{ selector: '[fs-list-head]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<tr class=\"fs-list-row\">\n <!-- Drag -->\n <th *ngIf=\"leftDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Selection -->\n <th *ngIf=\"selection && !(selection.disabled$ | async)\" class=\"fs-list-col fs-list-col-selection\">\n <mat-checkbox (change)=\"selectAll($event)\" [checked]=\"selectedAll\"></mat-checkbox>\n </th>\n\n <!-- Content -->\n <th \n fs-head-cell *ngFor=\"let column of columns; trackBy: trackByFn\"\n (click)=\"$event.stopPropagation(); sorting.sortBy(column)\"\n [column]=\"column\"\n [class.sorting]=\"column.sortable\"\n [ngClass]=\"column.headerConfigs.classesArray\"\n [attr.colspan]=\"column.headerConfigs.colspan\"\n [attr.width]=\"column.width\">\n </th>\n\n <!-- Drag -->\n <th *ngIf=\"rightDragDropEnabled\"\n class=\"fs-list-col drag-col\">\n </th>\n\n <!-- Row Actions -->\n <th *ngIf=\"hasRowActions && !(reorderEnabled && reorderStrategy === ReorderStrategyEnum.Manual)\" class=\"fs-list-col row-actions\"></th>\n</tr>\n", styles: ["th.fs-list-col-selection{width:1%;text-align:left}th.sorting{cursor:pointer}th.sorting:hover{background-color:#f6f6f6}th.sorting{background-image:none}th.left{text-align:left}th.center{text-align:center}th.right{text-align:right}\n"] }]
|
|
83
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { sorting: [{
|
|
84
|
+
type: Input
|
|
85
|
+
}], columns: [{
|
|
86
|
+
type: Input
|
|
87
|
+
}], hasRowActions: [{
|
|
88
|
+
type: Input
|
|
89
|
+
}], selection: [{
|
|
90
|
+
type: Input
|
|
91
|
+
}], activeFiltersCount: [{
|
|
92
|
+
type: Input
|
|
93
|
+
}], reorderEnabled: [{
|
|
94
|
+
type: Input
|
|
95
|
+
}], reorderPosition: [{
|
|
96
|
+
type: Input
|
|
97
|
+
}], reorderStrategy: [{
|
|
98
|
+
type: Input
|
|
99
|
+
}], rowsContainer: [{
|
|
100
|
+
type: ViewChild,
|
|
101
|
+
args: ['rowsContainer', { read: ViewContainerRef, static: true }]
|
|
102
|
+
}] } });
|
|
103
103
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