@firestitch/list 13.0.6 → 13.0.7
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 +191 -191
- package/app/classes/pagination-controller.d.ts +198 -198
- package/app/classes/persistance-controller.d.ts +10 -10
- package/app/classes/reorder-controller.d.ts +68 -68
- package/app/classes/selection-controller.d.ts +155 -155
- package/app/classes/sorting-controller.d.ts +65 -65
- 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 +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 +247 -247
- 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 +751 -751
- package/esm2020/app/classes/pagination-controller.mjs +477 -477
- package/esm2020/app/classes/persistance-controller.mjs +19 -19
- package/esm2020/app/classes/reorder-controller.mjs +181 -181
- package/esm2020/app/classes/selection-controller.mjs +467 -467
- package/esm2020/app/classes/sorting-controller.mjs +183 -183
- package/esm2020/app/components/body/body.component.mjs +63 -63
- package/esm2020/app/components/body/row/actions/actions.component.mjs +97 -97
- 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 -322
- 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 +390 -390
- 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 +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 +1 -1
- 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 +89 -89
- 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 +45 -45
- package/fesm2015/firestitch-list.mjs +5710 -5710
- package/fesm2015/firestitch-list.mjs.map +1 -1
- package/fesm2020/firestitch-list.mjs +5695 -5695
- 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,188 +1,188 @@
|
|
|
1
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
|
-
import { takeUntil } from 'rxjs/operators';
|
|
3
|
-
import { ColumnAttributes } from '../models/column-attributes';
|
|
4
|
-
import { Column, SortingDirection } from '../models/column.model';
|
|
5
|
-
export class SortingController {
|
|
6
|
-
constructor() {
|
|
7
|
-
this.sortingColumns = [];
|
|
8
|
-
this.fakeSortingColumns = [];
|
|
9
|
-
this._initialized = new BehaviorSubject(false);
|
|
10
|
-
this._sortingChanged$ = new Subject();
|
|
11
|
-
this._onDestroy = new Subject();
|
|
12
|
-
}
|
|
13
|
-
get sortingChanged$() {
|
|
14
|
-
return this._sortingChanged$.pipe(takeUntil(this._onDestroy));
|
|
15
|
-
}
|
|
16
|
-
get initialized$() {
|
|
17
|
-
return this._initialized.pipe(takeUntil(this._onDestroy));
|
|
18
|
-
}
|
|
19
|
-
get value() {
|
|
20
|
-
if (this.sortingColumn) {
|
|
21
|
-
return {
|
|
22
|
-
value: this.sortingColumn.name,
|
|
23
|
-
direction: this.sortingColumn.direction,
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
return undefined;
|
|
27
|
-
}
|
|
28
|
-
get initialization() {
|
|
29
|
-
return !this._initialized.getValue();
|
|
30
|
-
}
|
|
31
|
-
get isDefined() {
|
|
32
|
-
return !!this.sortingColumn;
|
|
33
|
-
}
|
|
34
|
-
set _initialization(value) {
|
|
35
|
-
this._initialized.next(!value);
|
|
36
|
-
}
|
|
37
|
-
addSortableColumn(column) {
|
|
38
|
-
this.sortingColumns.push(column);
|
|
39
|
-
}
|
|
40
|
-
clearSortableColumns() {
|
|
41
|
-
this.sortingColumns = [];
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Set Sortable Direction
|
|
45
|
-
*
|
|
46
|
-
* @param direction
|
|
47
|
-
*/
|
|
48
|
-
sortDirection(direction) {
|
|
49
|
-
if (this.sortingColumn && this.sortingColumn.sortingDirection !== direction) {
|
|
50
|
-
this._setSortingDirection(direction);
|
|
51
|
-
this._notifySortChanged();
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Sort By
|
|
56
|
-
*
|
|
57
|
-
* @param column
|
|
58
|
-
*/
|
|
59
|
-
sortBy(column) {
|
|
60
|
-
if (column.sortable) {
|
|
61
|
-
this._setSortingColumn(column);
|
|
62
|
-
this._notifySortChanged();
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Same as sortBy, but need only column name as parameter for sort
|
|
67
|
-
*
|
|
68
|
-
* @param name
|
|
69
|
-
*/
|
|
70
|
-
sortByColumnWithName(name) {
|
|
71
|
-
const column = this.getColumn(name);
|
|
72
|
-
if (!column) {
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
this._setSortingColumn(column);
|
|
76
|
-
this._notifySortChanged();
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Init fake columns for sorting
|
|
80
|
-
*
|
|
81
|
-
* @param columns
|
|
82
|
-
*/
|
|
83
|
-
initFakeColumns(columns) {
|
|
84
|
-
columns.forEach((column) => {
|
|
85
|
-
const attributes = new ColumnAttributes({
|
|
86
|
-
title: column.name,
|
|
87
|
-
name: column.value,
|
|
88
|
-
sortable: true,
|
|
89
|
-
direction: column.direction,
|
|
90
|
-
});
|
|
91
|
-
const fakeColumn = new Column({
|
|
92
|
-
attributes,
|
|
93
|
-
});
|
|
94
|
-
this.fakeSortingColumns.push(fakeColumn);
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Set initial sorting
|
|
99
|
-
*
|
|
100
|
-
* @param sort
|
|
101
|
-
*/
|
|
102
|
-
initialSortBy(sort) {
|
|
103
|
-
this._initialization = true;
|
|
104
|
-
if (!sort) {
|
|
105
|
-
this._trySortByDefaultSortableColumn();
|
|
106
|
-
if (!this.sortingColumn) {
|
|
107
|
-
this.sortByFirstSortbale();
|
|
108
|
-
}
|
|
109
|
-
this._initialization = false;
|
|
110
|
-
return;
|
|
111
|
-
}
|
|
112
|
-
if (!this.getColumn(sort.value)) {
|
|
113
|
-
this.sortByFirstSortbale();
|
|
1
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
2
|
+
import { takeUntil } from 'rxjs/operators';
|
|
3
|
+
import { ColumnAttributes } from '../models/column-attributes';
|
|
4
|
+
import { Column, SortingDirection } from '../models/column.model';
|
|
5
|
+
export class SortingController {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.sortingColumns = [];
|
|
8
|
+
this.fakeSortingColumns = [];
|
|
9
|
+
this._initialized = new BehaviorSubject(false);
|
|
10
|
+
this._sortingChanged$ = new Subject();
|
|
11
|
+
this._onDestroy = new Subject();
|
|
12
|
+
}
|
|
13
|
+
get sortingChanged$() {
|
|
14
|
+
return this._sortingChanged$.pipe(takeUntil(this._onDestroy));
|
|
15
|
+
}
|
|
16
|
+
get initialized$() {
|
|
17
|
+
return this._initialized.pipe(takeUntil(this._onDestroy));
|
|
18
|
+
}
|
|
19
|
+
get value() {
|
|
20
|
+
if (this.sortingColumn) {
|
|
21
|
+
return {
|
|
22
|
+
value: this.sortingColumn.name,
|
|
23
|
+
direction: this.sortingColumn.direction,
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
get initialization() {
|
|
29
|
+
return !this._initialized.getValue();
|
|
30
|
+
}
|
|
31
|
+
get isDefined() {
|
|
32
|
+
return !!this.sortingColumn;
|
|
33
|
+
}
|
|
34
|
+
set _initialization(value) {
|
|
35
|
+
this._initialized.next(!value);
|
|
36
|
+
}
|
|
37
|
+
addSortableColumn(column) {
|
|
38
|
+
this.sortingColumns.push(column);
|
|
39
|
+
}
|
|
40
|
+
clearSortableColumns() {
|
|
41
|
+
this.sortingColumns = [];
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Set Sortable Direction
|
|
45
|
+
*
|
|
46
|
+
* @param direction
|
|
47
|
+
*/
|
|
48
|
+
sortDirection(direction) {
|
|
49
|
+
if (this.sortingColumn && this.sortingColumn.sortingDirection !== direction) {
|
|
50
|
+
this._setSortingDirection(direction);
|
|
51
|
+
this._notifySortChanged();
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Sort By
|
|
56
|
+
*
|
|
57
|
+
* @param column
|
|
58
|
+
*/
|
|
59
|
+
sortBy(column) {
|
|
60
|
+
if (column.sortable) {
|
|
61
|
+
this._setSortingColumn(column);
|
|
62
|
+
this._notifySortChanged();
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Same as sortBy, but need only column name as parameter for sort
|
|
67
|
+
*
|
|
68
|
+
* @param name
|
|
69
|
+
*/
|
|
70
|
+
sortByColumnWithName(name) {
|
|
71
|
+
const column = this.getColumn(name);
|
|
72
|
+
if (!column) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
this._setSortingColumn(column);
|
|
76
|
+
this._notifySortChanged();
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Init fake columns for sorting
|
|
80
|
+
*
|
|
81
|
+
* @param columns
|
|
82
|
+
*/
|
|
83
|
+
initFakeColumns(columns) {
|
|
84
|
+
columns.forEach((column) => {
|
|
85
|
+
const attributes = new ColumnAttributes({
|
|
86
|
+
title: column.name,
|
|
87
|
+
name: column.value,
|
|
88
|
+
sortable: true,
|
|
89
|
+
direction: column.direction,
|
|
90
|
+
});
|
|
91
|
+
const fakeColumn = new Column({
|
|
92
|
+
attributes,
|
|
93
|
+
});
|
|
94
|
+
this.fakeSortingColumns.push(fakeColumn);
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Set initial sorting
|
|
99
|
+
*
|
|
100
|
+
* @param sort
|
|
101
|
+
*/
|
|
102
|
+
initialSortBy(sort) {
|
|
103
|
+
this._initialization = true;
|
|
104
|
+
if (!sort) {
|
|
105
|
+
this._trySortByDefaultSortableColumn();
|
|
106
|
+
if (!this.sortingColumn) {
|
|
107
|
+
this.sortByFirstSortbale();
|
|
108
|
+
}
|
|
109
|
+
this._initialization = false;
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
if (!this.getColumn(sort.value)) {
|
|
113
|
+
this.sortByFirstSortbale();
|
|
114
114
|
console.warn(`
|
|
115
115
|
Not possible to do initial sort by "${sort.value}" column.
|
|
116
116
|
Column with name "${sort.value}" does not exists.
|
|
117
117
|
Check your lister configuration.
|
|
118
|
-
`);
|
|
119
|
-
}
|
|
120
|
-
else {
|
|
121
|
-
this.sortByColumnWithName(sort.value);
|
|
122
|
-
const direction = (sort.direction === undefined || sort.direction === 'asc')
|
|
123
|
-
? SortingDirection.asc
|
|
124
|
-
: SortingDirection.desc;
|
|
125
|
-
this._setSortingDirection(direction);
|
|
126
|
-
}
|
|
127
|
-
this._initialization = false;
|
|
128
|
-
}
|
|
129
|
-
/**
|
|
130
|
-
* Sort by first of available sorting columns
|
|
131
|
-
*/
|
|
132
|
-
sortByFirstSortbale() {
|
|
133
|
-
const column = this.sortingColumns.find((col) => col.sortable);
|
|
134
|
-
if (!column) {
|
|
135
|
-
return;
|
|
136
|
-
}
|
|
137
|
-
this.sortBy(column);
|
|
138
|
-
this.sortDirection(column.direction || SortingDirection.asc);
|
|
139
|
-
}
|
|
140
|
-
getColumn(name) {
|
|
141
|
-
return [...this.sortingColumns, ...this.fakeSortingColumns]
|
|
142
|
-
.find((col) => col.name === name && col.sortable);
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Destroy
|
|
146
|
-
*/
|
|
147
|
-
destroy() {
|
|
148
|
-
this._onDestroy.next();
|
|
149
|
-
this._onDestroy.complete();
|
|
150
|
-
}
|
|
151
|
-
_setSortingColumn(column) {
|
|
152
|
-
// Can't do sort by non sortable column
|
|
153
|
-
if (!column.sortable) {
|
|
154
|
-
return false;
|
|
155
|
-
}
|
|
156
|
-
// Column was ordered before
|
|
157
|
-
if (column.ordered) {
|
|
158
|
-
column.changeDirection();
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
[...this.fakeSortingColumns, ...this.sortingColumns]
|
|
162
|
-
.filter((col) => col.ordered)
|
|
163
|
-
.forEach((col) => col.ordered = false);
|
|
164
|
-
column.ordered = true;
|
|
165
|
-
}
|
|
166
|
-
this.sortingColumn = column;
|
|
167
|
-
}
|
|
168
|
-
_setSortingDirection(direction) {
|
|
169
|
-
this.sortingColumn.sortingDirection = direction;
|
|
170
|
-
}
|
|
171
|
-
_notifySortChanged() {
|
|
172
|
-
if (this.initialization) {
|
|
173
|
-
return;
|
|
174
|
-
}
|
|
175
|
-
this._sortingChanged$.next({
|
|
176
|
-
sortBy: this.sortingColumn.name,
|
|
177
|
-
sortDirection: this.sortingColumn.direction,
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
_trySortByDefaultSortableColumn() {
|
|
181
|
-
const sortableDefault = this.sortingColumns
|
|
182
|
-
.find((column) => column.sortableDefault);
|
|
183
|
-
if (sortableDefault) {
|
|
184
|
-
this.sortByColumnWithName(sortableDefault.name);
|
|
185
|
-
}
|
|
186
|
-
}
|
|
187
|
-
}
|
|
118
|
+
`);
|
|
119
|
+
}
|
|
120
|
+
else {
|
|
121
|
+
this.sortByColumnWithName(sort.value);
|
|
122
|
+
const direction = (sort.direction === undefined || sort.direction === 'asc')
|
|
123
|
+
? SortingDirection.asc
|
|
124
|
+
: SortingDirection.desc;
|
|
125
|
+
this._setSortingDirection(direction);
|
|
126
|
+
}
|
|
127
|
+
this._initialization = false;
|
|
128
|
+
}
|
|
129
|
+
/**
|
|
130
|
+
* Sort by first of available sorting columns
|
|
131
|
+
*/
|
|
132
|
+
sortByFirstSortbale() {
|
|
133
|
+
const column = this.sortingColumns.find((col) => col.sortable);
|
|
134
|
+
if (!column) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
this.sortBy(column);
|
|
138
|
+
this.sortDirection(column.direction || SortingDirection.asc);
|
|
139
|
+
}
|
|
140
|
+
getColumn(name) {
|
|
141
|
+
return [...this.sortingColumns, ...this.fakeSortingColumns]
|
|
142
|
+
.find((col) => col.name === name && col.sortable);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Destroy
|
|
146
|
+
*/
|
|
147
|
+
destroy() {
|
|
148
|
+
this._onDestroy.next();
|
|
149
|
+
this._onDestroy.complete();
|
|
150
|
+
}
|
|
151
|
+
_setSortingColumn(column) {
|
|
152
|
+
// Can't do sort by non sortable column
|
|
153
|
+
if (!column.sortable) {
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
// Column was ordered before
|
|
157
|
+
if (column.ordered) {
|
|
158
|
+
column.changeDirection();
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
[...this.fakeSortingColumns, ...this.sortingColumns]
|
|
162
|
+
.filter((col) => col.ordered)
|
|
163
|
+
.forEach((col) => col.ordered = false);
|
|
164
|
+
column.ordered = true;
|
|
165
|
+
}
|
|
166
|
+
this.sortingColumn = column;
|
|
167
|
+
}
|
|
168
|
+
_setSortingDirection(direction) {
|
|
169
|
+
this.sortingColumn.sortingDirection = direction;
|
|
170
|
+
}
|
|
171
|
+
_notifySortChanged() {
|
|
172
|
+
if (this.initialization) {
|
|
173
|
+
return;
|
|
174
|
+
}
|
|
175
|
+
this._sortingChanged$.next({
|
|
176
|
+
sortBy: this.sortingColumn.name,
|
|
177
|
+
sortDirection: this.sortingColumn.direction,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
_trySortByDefaultSortableColumn() {
|
|
181
|
+
const sortableDefault = this.sortingColumns
|
|
182
|
+
.find((column) => column.sortableDefault);
|
|
183
|
+
if (sortableDefault) {
|
|
184
|
+
this.sortByColumnWithName(sortableDefault.name);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
188
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic29ydGluZy1jb250cm9sbGVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2FwcC9jbGFzc2VzL3NvcnRpbmctY29udHJvbGxlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsZUFBZSxFQUFjLE9BQU8sRUFBRSxNQUFNLE1BQU0sQ0FBQztBQUM1RCxPQUFPLEVBQUUsU0FBUyxFQUFFLE1BQU0sZ0JBQWdCLENBQUM7QUFHM0MsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0sNkJBQTZCLENBQUM7QUFDL0QsT0FBTyxFQUFFLE1BQU0sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHdCQUF3QixDQUFDO0FBS2xFLE1BQU0sT0FBTyxpQkFBaUI7SUFXNUI7UUFSTyxtQkFBYyxHQUFhLEVBQUUsQ0FBQztRQUM5Qix1QkFBa0IsR0FBYSxFQUFFLENBQUM7UUFHakMsaU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N0IHNvcnRhYmxlRGVmYXVsdCA9IHRoaXMuc29ydGluZ0NvbHVtbnNcbiAgICAgIC5maW5kKChjb2x1bW4pID0+IGNvbHVtbi5zb3J0YWJsZURlZmF1bHQpO1xuXG4gICAgaWYgKHNvcnRhYmxlRGVmYXVsdCkge1xuICAgICAgdGhpcy5zb3J0QnlDb2x1bW5XaXRoTmFtZShzb3J0YWJsZURlZmF1bHQubmFtZSk7XG4gICAgfVxuICB9XG59XG4iXX0=
|
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, Input, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
|
|
3
|
-
import { SelectionController } from '../../classes/selection-controller';
|
|
4
|
-
import { FsRowComponent } from './row/row.component';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "./row/row.component";
|
|
7
|
-
import * as i2 from "@angular/common";
|
|
8
|
-
import * as i3 from "../../directives/draggable-row/draggable-row.directive";
|
|
9
|
-
export class FsBodyComponent {
|
|
10
|
-
constructor() {
|
|
11
|
-
this.columns = [];
|
|
12
|
-
this.hasFooter = false;
|
|
13
|
-
this.rowActionsRaw = [];
|
|
14
|
-
this.groupActionsRaw = [];
|
|
15
|
-
this.rowEvents = {};
|
|
16
|
-
this.hasRowActions = false;
|
|
17
|
-
this.restoreMode = false;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
FsBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
FsBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsBodyComponent, selector: "[fs-list-body]", inputs: { rows: "rows", columns: "columns", hasFooter: "hasFooter", rowActionsRaw: "rowActionsRaw", groupActionsRaw: "groupActionsRaw", rowEvents: "rowEvents", rowClass: "rowClass", hasRowActions: "hasRowActions", selection: "selection", restoreMode: "restoreMode", rowRemoved: "rowRemoved", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy", reorderMultiple: "reorderMultiple" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: FsRowComponent, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container *ngFor=\"let row of rows; let i = index;\">\n <tr\n fs-list-row\n fsListDraggableRow\n [row]=\"row\"\n [rowIndex]=\"i\"\n [columns]=\"columns\"\n [rowActionsRaw]=\"rowActionsRaw\"\n [groupActionsRaw]=\"groupActionsRaw\"\n [hasRowActions]=\"hasRowActions\"\n [rowEvents]=\"rowEvents\"\n [rowClass]=\"rowClass\"\n [selection]=\"selection\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"activeFiltersCount\"\n [reorderEnabled]=\"reorderEnabled\"\n [reorderPosition]=\"reorderPosition\"\n [reorderStrategy]=\"reorderStrategy\"\n [reorderMultiple]=\"reorderMultiple\">\n </tr>\n</ng-container>\n", styles: [":host.drag-hidden .drag-col{opacity:0!important;cursor:default}:host.disabled{opacity:.4;pointer-events:none}\n"], components: [{ type: i1.FsRowComponent, selector: "[fs-list-row]", inputs: ["row", "rowActionsRaw", "groupActionsRaw", "hasRowActions", "rowEvents", "rowClass", "restoreMode", "rowIndex", "columns", "selection", "rowRemoved", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy", "reorderMultiple"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.FsListDraggableRowDirective, selector: "[fsListDraggableRow]", inputs: ["row"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsBodyComponent, decorators: [{
|
|
23
|
-
type: Component,
|
|
24
|
-
args: [{ selector: '[fs-list-body]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngFor=\"let row of rows; let i = index;\">\n <tr\n fs-list-row\n fsListDraggableRow\n [row]=\"row\"\n [rowIndex]=\"i\"\n [columns]=\"columns\"\n [rowActionsRaw]=\"rowActionsRaw\"\n [groupActionsRaw]=\"groupActionsRaw\"\n [hasRowActions]=\"hasRowActions\"\n [rowEvents]=\"rowEvents\"\n [rowClass]=\"rowClass\"\n [selection]=\"selection\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"activeFiltersCount\"\n [reorderEnabled]=\"reorderEnabled\"\n [reorderPosition]=\"reorderPosition\"\n [reorderStrategy]=\"reorderStrategy\"\n [reorderMultiple]=\"reorderMultiple\">\n </tr>\n</ng-container>\n", styles: [":host.drag-hidden .drag-col{opacity:0!important;cursor:default}:host.disabled{opacity:.4;pointer-events:none}\n"] }]
|
|
25
|
-
}], propDecorators: { rows: [{
|
|
26
|
-
type: Input
|
|
27
|
-
}], columns: [{
|
|
28
|
-
type: Input
|
|
29
|
-
}], hasFooter: [{
|
|
30
|
-
type: Input
|
|
31
|
-
}], rowActionsRaw: [{
|
|
32
|
-
type: Input
|
|
33
|
-
}], groupActionsRaw: [{
|
|
34
|
-
type: Input
|
|
35
|
-
}], rowEvents: [{
|
|
36
|
-
type: Input
|
|
37
|
-
}], rowClass: [{
|
|
38
|
-
type: Input
|
|
39
|
-
}], hasRowActions: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}], selection: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], restoreMode: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], rowRemoved: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}], activeFiltersCount: [{
|
|
48
|
-
type: Input
|
|
49
|
-
}], reorderEnabled: [{
|
|
50
|
-
type: Input
|
|
51
|
-
}], reorderPosition: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}], reorderStrategy: [{
|
|
54
|
-
type: Input
|
|
55
|
-
}], reorderMultiple: [{
|
|
56
|
-
type: Input
|
|
57
|
-
}], rowsContainer: [{
|
|
58
|
-
type: ViewChild,
|
|
59
|
-
args: ['rowsContainer', { read: ViewContainerRef, static: true }]
|
|
60
|
-
}], headerTemplate: [{
|
|
61
|
-
type: ContentChild,
|
|
62
|
-
args: [FsRowComponent, { read: TemplateRef, static: true }]
|
|
63
|
-
}] } });
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, EventEmitter, Input, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { ReorderPosition, ReorderStrategy } from '../../classes/reorder-controller';
|
|
3
|
+
import { SelectionController } from '../../classes/selection-controller';
|
|
4
|
+
import { FsRowComponent } from './row/row.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "./row/row.component";
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
import * as i3 from "../../directives/draggable-row/draggable-row.directive";
|
|
9
|
+
export class FsBodyComponent {
|
|
10
|
+
constructor() {
|
|
11
|
+
this.columns = [];
|
|
12
|
+
this.hasFooter = false;
|
|
13
|
+
this.rowActionsRaw = [];
|
|
14
|
+
this.groupActionsRaw = [];
|
|
15
|
+
this.rowEvents = {};
|
|
16
|
+
this.hasRowActions = false;
|
|
17
|
+
this.restoreMode = false;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
FsBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
FsBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.4.0", type: FsBodyComponent, selector: "[fs-list-body]", inputs: { rows: "rows", columns: "columns", hasFooter: "hasFooter", rowActionsRaw: "rowActionsRaw", groupActionsRaw: "groupActionsRaw", rowEvents: "rowEvents", rowClass: "rowClass", hasRowActions: "hasRowActions", selection: "selection", restoreMode: "restoreMode", rowRemoved: "rowRemoved", activeFiltersCount: "activeFiltersCount", reorderEnabled: "reorderEnabled", reorderPosition: "reorderPosition", reorderStrategy: "reorderStrategy", reorderMultiple: "reorderMultiple" }, queries: [{ propertyName: "headerTemplate", first: true, predicate: FsRowComponent, descendants: true, read: TemplateRef, static: true }], viewQueries: [{ propertyName: "rowsContainer", first: true, predicate: ["rowsContainer"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<ng-container *ngFor=\"let row of rows; let i = index;\">\n <tr\n fs-list-row\n fsListDraggableRow\n [row]=\"row\"\n [rowIndex]=\"i\"\n [columns]=\"columns\"\n [rowActionsRaw]=\"rowActionsRaw\"\n [groupActionsRaw]=\"groupActionsRaw\"\n [hasRowActions]=\"hasRowActions\"\n [rowEvents]=\"rowEvents\"\n [rowClass]=\"rowClass\"\n [selection]=\"selection\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"activeFiltersCount\"\n [reorderEnabled]=\"reorderEnabled\"\n [reorderPosition]=\"reorderPosition\"\n [reorderStrategy]=\"reorderStrategy\"\n [reorderMultiple]=\"reorderMultiple\">\n </tr>\n</ng-container>\n", styles: [":host.drag-hidden .drag-col{opacity:0!important;cursor:default}:host.disabled{opacity:.4;pointer-events:none}\n"], components: [{ type: i1.FsRowComponent, selector: "[fs-list-row]", inputs: ["row", "rowActionsRaw", "groupActionsRaw", "hasRowActions", "rowEvents", "rowClass", "restoreMode", "rowIndex", "columns", "selection", "rowRemoved", "activeFiltersCount", "reorderEnabled", "reorderPosition", "reorderStrategy", "reorderMultiple"] }], directives: [{ type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.FsListDraggableRowDirective, selector: "[fsListDraggableRow]", inputs: ["row"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.4.0", ngImport: i0, type: FsBodyComponent, decorators: [{
|
|
23
|
+
type: Component,
|
|
24
|
+
args: [{ selector: '[fs-list-body]', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container *ngFor=\"let row of rows; let i = index;\">\n <tr\n fs-list-row\n fsListDraggableRow\n [row]=\"row\"\n [rowIndex]=\"i\"\n [columns]=\"columns\"\n [rowActionsRaw]=\"rowActionsRaw\"\n [groupActionsRaw]=\"groupActionsRaw\"\n [hasRowActions]=\"hasRowActions\"\n [rowEvents]=\"rowEvents\"\n [rowClass]=\"rowClass\"\n [selection]=\"selection\"\n [restoreMode]=\"restoreMode\"\n [rowRemoved]=\"rowRemoved\"\n [activeFiltersCount]=\"activeFiltersCount\"\n [reorderEnabled]=\"reorderEnabled\"\n [reorderPosition]=\"reorderPosition\"\n [reorderStrategy]=\"reorderStrategy\"\n [reorderMultiple]=\"reorderMultiple\">\n </tr>\n</ng-container>\n", styles: [":host.drag-hidden .drag-col{opacity:0!important;cursor:default}:host.disabled{opacity:.4;pointer-events:none}\n"] }]
|
|
25
|
+
}], propDecorators: { rows: [{
|
|
26
|
+
type: Input
|
|
27
|
+
}], columns: [{
|
|
28
|
+
type: Input
|
|
29
|
+
}], hasFooter: [{
|
|
30
|
+
type: Input
|
|
31
|
+
}], rowActionsRaw: [{
|
|
32
|
+
type: Input
|
|
33
|
+
}], groupActionsRaw: [{
|
|
34
|
+
type: Input
|
|
35
|
+
}], rowEvents: [{
|
|
36
|
+
type: Input
|
|
37
|
+
}], rowClass: [{
|
|
38
|
+
type: Input
|
|
39
|
+
}], hasRowActions: [{
|
|
40
|
+
type: Input
|
|
41
|
+
}], selection: [{
|
|
42
|
+
type: Input
|
|
43
|
+
}], restoreMode: [{
|
|
44
|
+
type: Input
|
|
45
|
+
}], rowRemoved: [{
|
|
46
|
+
type: Input
|
|
47
|
+
}], activeFiltersCount: [{
|
|
48
|
+
type: Input
|
|
49
|
+
}], reorderEnabled: [{
|
|
50
|
+
type: Input
|
|
51
|
+
}], reorderPosition: [{
|
|
52
|
+
type: Input
|
|
53
|
+
}], reorderStrategy: [{
|
|
54
|
+
type: Input
|
|
55
|
+
}], reorderMultiple: [{
|
|
56
|
+
type: Input
|
|
57
|
+
}], rowsContainer: [{
|
|
58
|
+
type: ViewChild,
|
|
59
|
+
args: ['rowsContainer', { read: ViewContainerRef, static: true }]
|
|
60
|
+
}], headerTemplate: [{
|
|
61
|
+
type: ContentChild,
|
|
62
|
+
args: [FsRowComponent, { read: TemplateRef, static: true }]
|
|
63
|
+
}] } });
|
|
64
64
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYm9keS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvYXBwL2NvbXBvbmVudHMvYm9keS9ib2R5LmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9hcHAvY29tcG9uZW50cy9ib2R5L2JvZHkuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUNMLHVCQUF1QixFQUN2QixTQUFTLEVBQ1QsWUFBWSxFQUNaLFlBQVksRUFDWixLQUFLLEVBQ0wsV0FBVyxFQUNYLFNBQVMsRUFDVCxnQkFBZ0IsRUFDakIsTUFBTSxlQUFlLENBQUM7QUFFdkIsT0FBTyxFQUFFLGVBQWUsRUFBRSxlQUFlLEVBQUUsTUFBTSxrQ0FBa0MsQ0FBQztBQUNwRixPQUFPLEVBQUUsbUJBQW1CLEVBQUUsTUFBTSxvQ0FBb0MsQ0F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