@firestitch/list 12.18.5 → 12.18.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 +31 -31
- package/app/classes/index.d.ts +2 -2
- package/app/classes/list-controller.d.ts +186 -186
- package/app/classes/pagination-controller.d.ts +189 -189
- 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 +64 -64
- 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 -16
- package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
- package/app/components/body/row/row.component.d.ts +82 -82
- 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 +124 -124
- 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 +33 -33
- 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 +3 -3
- package/app/interfaces/listconfig.interface.d.ts +246 -246
- package/app/interfaces/pagination.interface.d.ts +13 -13
- 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 +60 -60
- 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 +30 -30
- 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/bundles/firestitch-list.umd.js +6940 -6951
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/actions-controller.js +55 -55
- package/esm2015/app/classes/columns-controller.js +205 -205
- package/esm2015/app/classes/data-controller.js +365 -365
- package/esm2015/app/classes/external-params-controller.js +153 -153
- package/esm2015/app/classes/index.js +3 -3
- package/esm2015/app/classes/list-controller.js +743 -744
- package/esm2015/app/classes/pagination-controller.js +460 -460
- package/esm2015/app/classes/persistance-controller.js +19 -19
- package/esm2015/app/classes/reorder-controller.js +182 -182
- package/esm2015/app/classes/selection-controller.js +467 -467
- package/esm2015/app/classes/sorting-controller.js +180 -180
- package/esm2015/app/components/body/body.component.js +68 -68
- package/esm2015/app/components/body/row/actions/actions.component.js +99 -99
- package/esm2015/app/components/body/row/cell/cell.component.js +113 -113
- package/esm2015/app/components/body/row/inline-action/inline-action.component.js +37 -40
- package/esm2015/app/components/body/row/menu-action/menu-action.component.js +50 -50
- package/esm2015/app/components/body/row/row.component.js +304 -304
- package/esm2015/app/components/customize-cols/customize-cols.component.js +72 -72
- package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +20 -20
- package/esm2015/app/components/footer/footer-row/footer-row.component.js +32 -32
- package/esm2015/app/components/footer/footer.component.js +35 -35
- package/esm2015/app/components/head/head-cell/head-cell.component.js +34 -34
- package/esm2015/app/components/head/head.component.js +107 -107
- package/esm2015/app/components/list/list.component.js +387 -387
- package/esm2015/app/components/loader/loader.component.js +45 -47
- package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +79 -78
- package/esm2015/app/components/pagination/pagination.component.js +42 -44
- package/esm2015/app/components/saved-filters/saved-filters.component.js +32 -33
- package/esm2015/app/components/status/status.component.js +72 -72
- package/esm2015/app/directives/cell/cell.directive.js +18 -18
- package/esm2015/app/directives/column/column.directive.js +111 -111
- package/esm2015/app/directives/content/content.directive.js +13 -13
- package/esm2015/app/directives/content-init/content-init.directive.js +21 -21
- package/esm2015/app/directives/draggable-list/draggable-list.directive.js +329 -329
- package/esm2015/app/directives/draggable-row/draggable-row.directive.js +79 -79
- package/esm2015/app/directives/empty-state/empty-state.directive.js +13 -13
- package/esm2015/app/directives/footer/footer.directive.js +18 -18
- package/esm2015/app/directives/group-expand-trigger/group-expand-trigger.directive.js +26 -26
- package/esm2015/app/directives/group-footer/group-footer.directive.js +13 -13
- package/esm2015/app/directives/group-header/group-header.directive.js +13 -13
- package/esm2015/app/directives/header/header.directive.js +18 -18
- package/esm2015/app/directives/heading/heading.directive.js +13 -13
- package/esm2015/app/directives/heading-container/heading-container.directive.js +13 -13
- package/esm2015/app/directives/index.js +4 -4
- package/esm2015/app/directives/subheading/subheading.directive.js +13 -13
- package/esm2015/app/enums/button-type.enum.js +9 -9
- package/esm2015/app/enums/page-change-type.enum.js +6 -6
- package/esm2015/app/enums/pagination-strategy.enum.js +7 -7
- package/esm2015/app/enums/row-type.enum.js +7 -7
- package/esm2015/app/enums/state.enum.js +11 -11
- package/esm2015/app/fs-list.module.js +245 -245
- package/esm2015/app/fs-list.providers.js +4 -4
- package/esm2015/app/interfaces/cellconfig.interface.js +2 -2
- package/esm2015/app/interfaces/column-config.interface.js +1 -1
- package/esm2015/app/interfaces/draggable-list.interface.js +2 -2
- package/esm2015/app/interfaces/external-params.interface.js +2 -2
- package/esm2015/app/interfaces/index.js +4 -4
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/esm2015/app/interfaces/pagination.interface.js +2 -2
- package/esm2015/app/models/column-async-attribute.js +13 -13
- package/esm2015/app/models/column-attributes.js +130 -130
- package/esm2015/app/models/column.model.js +162 -162
- package/esm2015/app/models/row/base-row.js +23 -23
- package/esm2015/app/models/row/child-row.js +28 -28
- package/esm2015/app/models/row/group-footer-row.js +20 -20
- package/esm2015/app/models/row/group-row.js +44 -44
- package/esm2015/app/models/row/simple-row.js +10 -10
- package/esm2015/app/models/row-action.model.js +90 -95
- package/esm2015/app/models/row.js +80 -80
- package/esm2015/app/models/styleConfig.model.js +75 -75
- package/esm2015/app/pipes/action-label.js +16 -16
- package/esm2015/app/pipes/index.js +1 -1
- package/esm2015/app/services/group-expand-notifier.service.js +26 -26
- package/esm2015/firestitch-list.js +4 -4
- package/esm2015/public_api.js +45 -45
- package/fesm2015/firestitch-list.js +5720 -5731
- package/fesm2015/firestitch-list.js.map +1 -1
- package/firestitch-list.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +39 -39
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { FilterComponent } from '@firestitch/filter';
|
|
3
|
-
import { FsListAction } from '../interfaces/listconfig.interface';
|
|
4
|
-
export declare class ActionsController {
|
|
5
|
-
private _filterRef;
|
|
6
|
-
private _actions;
|
|
7
|
-
private _reorderAction;
|
|
8
|
-
private _doneAction;
|
|
9
|
-
private _destroy$;
|
|
10
|
-
constructor();
|
|
11
|
-
get destroy$(): Observable<void>;
|
|
12
|
-
get actions(): FsListAction[];
|
|
13
|
-
get hasActions(): boolean;
|
|
14
|
-
setFilterRef(ref: FilterComponent): void;
|
|
15
|
-
setActions(actions: FsListAction[]): void;
|
|
16
|
-
addReorderAction(action: FsListAction): void;
|
|
17
|
-
addReorderDoneAction(action: FsListAction): void;
|
|
18
|
-
clearActions(): void;
|
|
19
|
-
updateDisabledState(): void;
|
|
20
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { FilterComponent } from '@firestitch/filter';
|
|
3
|
+
import { FsListAction } from '../interfaces/listconfig.interface';
|
|
4
|
+
export declare class ActionsController {
|
|
5
|
+
private _filterRef;
|
|
6
|
+
private _actions;
|
|
7
|
+
private _reorderAction;
|
|
8
|
+
private _doneAction;
|
|
9
|
+
private _destroy$;
|
|
10
|
+
constructor();
|
|
11
|
+
get destroy$(): Observable<void>;
|
|
12
|
+
get actions(): FsListAction[];
|
|
13
|
+
get hasActions(): boolean;
|
|
14
|
+
setFilterRef(ref: FilterComponent): void;
|
|
15
|
+
setActions(actions: FsListAction[]): void;
|
|
16
|
+
addReorderAction(action: FsListAction): void;
|
|
17
|
+
addReorderDoneAction(action: FsListAction): void;
|
|
18
|
+
clearActions(): void;
|
|
19
|
+
updateDisabledState(): void;
|
|
20
|
+
}
|
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { Column } from '../models/column.model';
|
|
3
|
-
import { FsListColumnChangeFn, FsListColumnConfig } from '../interfaces/listconfig.interface';
|
|
4
|
-
export declare class ColumnsController {
|
|
5
|
-
private _visibleColumns$;
|
|
6
|
-
private _visibleColumnsShared$;
|
|
7
|
-
private _theadClass;
|
|
8
|
-
private _loadFn;
|
|
9
|
-
private _changeFn;
|
|
10
|
-
private _customizeFieldTitleFn;
|
|
11
|
-
private _customizeFieldDisabledFn;
|
|
12
|
-
private _columnTooltipFn;
|
|
13
|
-
private _isConfigured;
|
|
14
|
-
private _loadFnConfigured;
|
|
15
|
-
private _changeFnConfigured;
|
|
16
|
-
private _columnsFetched;
|
|
17
|
-
private _hasHeader;
|
|
18
|
-
private _hasFooter;
|
|
19
|
-
private _columns;
|
|
20
|
-
private _defaultConfigs;
|
|
21
|
-
private _columnsUpdated$;
|
|
22
|
-
private _destroy$;
|
|
23
|
-
constructor();
|
|
24
|
-
get columns(): Column[];
|
|
25
|
-
get visibleColumns(): Column[];
|
|
26
|
-
get visibleColumns$(): Observable<Column[]>;
|
|
27
|
-
get columnsForDialog(): {
|
|
28
|
-
template: import("@angular/core").TemplateRef<any>;
|
|
29
|
-
name: string;
|
|
30
|
-
show: boolean;
|
|
31
|
-
title: string;
|
|
32
|
-
disabled: boolean;
|
|
33
|
-
tooltip: string;
|
|
34
|
-
}[];
|
|
35
|
-
get columnsFetched(): boolean;
|
|
36
|
-
get hasHeader(): boolean;
|
|
37
|
-
get hasFooter(): boolean;
|
|
38
|
-
get theadClass(): string;
|
|
39
|
-
get configured(): boolean;
|
|
40
|
-
get loadFnConfigured(): boolean;
|
|
41
|
-
get changeFnConfigured(): boolean;
|
|
42
|
-
get changeFn(): FsListColumnChangeFn;
|
|
43
|
-
get visibleColumnsNames(): string[];
|
|
44
|
-
setDefaults(defaults: any): void;
|
|
45
|
-
/**
|
|
46
|
-
* Set data from list config
|
|
47
|
-
* @param config
|
|
48
|
-
*/
|
|
49
|
-
initConfig(config: FsListColumnConfig): void;
|
|
50
|
-
/**
|
|
51
|
-
* Base initialization for columns
|
|
52
|
-
* @param templates
|
|
53
|
-
*/
|
|
54
|
-
initializeColumns(templates: any): void;
|
|
55
|
-
/**
|
|
56
|
-
* Load visiblity config for columns from remote
|
|
57
|
-
*/
|
|
58
|
-
loadRemoteColumnConfigs(): Observable<import("../interfaces/listconfig.interface").FsListColumn[]>;
|
|
59
|
-
/**
|
|
60
|
-
* Set visible columns based on current columns show status
|
|
61
|
-
*/
|
|
62
|
-
updateVisibleColumns(): void;
|
|
63
|
-
/**
|
|
64
|
-
* Update visibility based on passed config
|
|
65
|
-
* @param columnsConfig
|
|
66
|
-
*/
|
|
67
|
-
updateVisibilityForCols(columnsConfig: any): void;
|
|
68
|
-
destroy(): void;
|
|
69
|
-
private _listenColumnVisibilityUpdates;
|
|
70
|
-
private _updateColspans;
|
|
71
|
-
}
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { Column } from '../models/column.model';
|
|
3
|
+
import { FsListColumnChangeFn, FsListColumnConfig } from '../interfaces/listconfig.interface';
|
|
4
|
+
export declare class ColumnsController {
|
|
5
|
+
private _visibleColumns$;
|
|
6
|
+
private _visibleColumnsShared$;
|
|
7
|
+
private _theadClass;
|
|
8
|
+
private _loadFn;
|
|
9
|
+
private _changeFn;
|
|
10
|
+
private _customizeFieldTitleFn;
|
|
11
|
+
private _customizeFieldDisabledFn;
|
|
12
|
+
private _columnTooltipFn;
|
|
13
|
+
private _isConfigured;
|
|
14
|
+
private _loadFnConfigured;
|
|
15
|
+
private _changeFnConfigured;
|
|
16
|
+
private _columnsFetched;
|
|
17
|
+
private _hasHeader;
|
|
18
|
+
private _hasFooter;
|
|
19
|
+
private _columns;
|
|
20
|
+
private _defaultConfigs;
|
|
21
|
+
private _columnsUpdated$;
|
|
22
|
+
private _destroy$;
|
|
23
|
+
constructor();
|
|
24
|
+
get columns(): Column[];
|
|
25
|
+
get visibleColumns(): Column[];
|
|
26
|
+
get visibleColumns$(): Observable<Column[]>;
|
|
27
|
+
get columnsForDialog(): {
|
|
28
|
+
template: import("@angular/core").TemplateRef<any>;
|
|
29
|
+
name: string;
|
|
30
|
+
show: boolean;
|
|
31
|
+
title: string;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
tooltip: string;
|
|
34
|
+
}[];
|
|
35
|
+
get columnsFetched(): boolean;
|
|
36
|
+
get hasHeader(): boolean;
|
|
37
|
+
get hasFooter(): boolean;
|
|
38
|
+
get theadClass(): string;
|
|
39
|
+
get configured(): boolean;
|
|
40
|
+
get loadFnConfigured(): boolean;
|
|
41
|
+
get changeFnConfigured(): boolean;
|
|
42
|
+
get changeFn(): FsListColumnChangeFn;
|
|
43
|
+
get visibleColumnsNames(): string[];
|
|
44
|
+
setDefaults(defaults: any): void;
|
|
45
|
+
/**
|
|
46
|
+
* Set data from list config
|
|
47
|
+
* @param config
|
|
48
|
+
*/
|
|
49
|
+
initConfig(config: FsListColumnConfig): void;
|
|
50
|
+
/**
|
|
51
|
+
* Base initialization for columns
|
|
52
|
+
* @param templates
|
|
53
|
+
*/
|
|
54
|
+
initializeColumns(templates: any): void;
|
|
55
|
+
/**
|
|
56
|
+
* Load visiblity config for columns from remote
|
|
57
|
+
*/
|
|
58
|
+
loadRemoteColumnConfigs(): Observable<import("../interfaces/listconfig.interface").FsListColumn[]>;
|
|
59
|
+
/**
|
|
60
|
+
* Set visible columns based on current columns show status
|
|
61
|
+
*/
|
|
62
|
+
updateVisibleColumns(): void;
|
|
63
|
+
/**
|
|
64
|
+
* Update visibility based on passed config
|
|
65
|
+
* @param columnsConfig
|
|
66
|
+
*/
|
|
67
|
+
updateVisibilityForCols(columnsConfig: any): void;
|
|
68
|
+
destroy(): void;
|
|
69
|
+
private _listenColumnVisibilityUpdates;
|
|
70
|
+
private _updateColspans;
|
|
71
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
import { FsListState } from '../enums/state.enum';
|
|
3
|
-
import { FsListAbstractRow, FsListGroupConfig, FsListTrackByTargetRowFn } from '../interfaces/listconfig.interface';
|
|
4
|
-
import { Row } from '../models/row';
|
|
5
|
-
export declare class DataController {
|
|
6
|
-
private readonly _visibleRows$;
|
|
7
|
-
private readonly _rowsRemoved$;
|
|
8
|
-
private readonly _remoteRowsChange$;
|
|
9
|
-
private _store;
|
|
10
|
-
private _rowsStack;
|
|
11
|
-
private _operation;
|
|
12
|
-
private _groupByFn;
|
|
13
|
-
private _footerRowFn;
|
|
14
|
-
private _compareByFn;
|
|
15
|
-
private _initialExpand;
|
|
16
|
-
private _groupEnabled;
|
|
17
|
-
private _infinityScrollEnabled;
|
|
18
|
-
private _loadMoreEnabled;
|
|
19
|
-
private _hasData;
|
|
20
|
-
private readonly _destroy$;
|
|
21
|
-
constructor();
|
|
22
|
-
get visibleRows$(): BehaviorSubject<Row[]>;
|
|
23
|
-
get visibleRows(): any[];
|
|
24
|
-
get visibleRowsData(): any[];
|
|
25
|
-
get rowsStack(): Row[];
|
|
26
|
-
get groupEnabled(): boolean;
|
|
27
|
-
set groupEnabled(value: boolean);
|
|
28
|
-
get remoteRowsChange$(): import("rxjs").Observable<void>;
|
|
29
|
-
get rowsRemoved$(): import("rxjs").Observable<Row[]>;
|
|
30
|
-
get hasData(): boolean;
|
|
31
|
-
get operation(): FsListState;
|
|
32
|
-
set visibleRows(value: any[]);
|
|
33
|
-
get visibleRowsCount(): number;
|
|
34
|
-
get hasGroups(): (row: any) => any[];
|
|
35
|
-
get reorderData(): import("../interfaces/listconfig.interface").FsListReorderData[];
|
|
36
|
-
setGroupConfig(group: FsListGroupConfig): void;
|
|
37
|
-
setAdditionalConfigs(configs: {
|
|
38
|
-
scrollable: boolean;
|
|
39
|
-
loadMoreEnabled: boolean;
|
|
40
|
-
}): void;
|
|
41
|
-
/**
|
|
42
|
-
* Rows what was received from fetch function
|
|
43
|
-
* @param rows
|
|
44
|
-
*/
|
|
45
|
-
setRowsFromResponse(rows: any[]): void;
|
|
46
|
-
/**
|
|
47
|
-
* Set current operation for list data flow
|
|
48
|
-
* @param value
|
|
49
|
-
*/
|
|
50
|
-
setOperation(value: FsListState): void;
|
|
51
|
-
/**
|
|
52
|
-
* Remove rows from visible
|
|
53
|
-
*/
|
|
54
|
-
clearRows(): void;
|
|
55
|
-
/**
|
|
56
|
-
* Replace data for specified row
|
|
57
|
-
* @param targetRow
|
|
58
|
-
* @param trackBy
|
|
59
|
-
*/
|
|
60
|
-
replaceData(targetRow: FsListAbstractRow, trackBy?: FsListTrackByTargetRowFn): boolean;
|
|
61
|
-
/**
|
|
62
|
-
* Update data for specified row
|
|
63
|
-
* @param rows
|
|
64
|
-
* @param trackBy
|
|
65
|
-
*/
|
|
66
|
-
updateData(rows: FsListAbstractRow | FsListAbstractRow[], trackBy?: FsListTrackByTargetRowFn): boolean;
|
|
67
|
-
/**
|
|
68
|
-
* Remove data for specified row
|
|
69
|
-
* @param data
|
|
70
|
-
*/
|
|
71
|
-
removeData(data: FsListAbstractRow | FsListAbstractRow[] | FsListTrackByTargetRowFn): boolean;
|
|
72
|
-
swapRows(row1: any, row2: any, selectedRows?: Row[], isMultipleDrag?: boolean): void;
|
|
73
|
-
destroy(): void;
|
|
74
|
-
toggleRowGroup(rowData: any): void;
|
|
75
|
-
finishReorder(): void;
|
|
76
|
-
private _updateRowsStack;
|
|
77
|
-
private _extendRowsStack;
|
|
78
|
-
private _destroyRowsStack;
|
|
79
|
-
private _updateVisibleRows;
|
|
80
|
-
private updateRow;
|
|
81
|
-
/**
|
|
82
|
-
* Remove row from
|
|
83
|
-
* @param targetRow
|
|
84
|
-
* @param trackBy
|
|
85
|
-
*/
|
|
86
|
-
private removeRow;
|
|
87
|
-
/**
|
|
88
|
-
* Split existing rows by groups and store them for future use
|
|
89
|
-
*/
|
|
90
|
-
private groupRowsBy;
|
|
91
|
-
}
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
import { FsListState } from '../enums/state.enum';
|
|
3
|
+
import { FsListAbstractRow, FsListGroupConfig, FsListTrackByTargetRowFn } from '../interfaces/listconfig.interface';
|
|
4
|
+
import { Row } from '../models/row';
|
|
5
|
+
export declare class DataController {
|
|
6
|
+
private readonly _visibleRows$;
|
|
7
|
+
private readonly _rowsRemoved$;
|
|
8
|
+
private readonly _remoteRowsChange$;
|
|
9
|
+
private _store;
|
|
10
|
+
private _rowsStack;
|
|
11
|
+
private _operation;
|
|
12
|
+
private _groupByFn;
|
|
13
|
+
private _footerRowFn;
|
|
14
|
+
private _compareByFn;
|
|
15
|
+
private _initialExpand;
|
|
16
|
+
private _groupEnabled;
|
|
17
|
+
private _infinityScrollEnabled;
|
|
18
|
+
private _loadMoreEnabled;
|
|
19
|
+
private _hasData;
|
|
20
|
+
private readonly _destroy$;
|
|
21
|
+
constructor();
|
|
22
|
+
get visibleRows$(): BehaviorSubject<Row[]>;
|
|
23
|
+
get visibleRows(): any[];
|
|
24
|
+
get visibleRowsData(): any[];
|
|
25
|
+
get rowsStack(): Row[];
|
|
26
|
+
get groupEnabled(): boolean;
|
|
27
|
+
set groupEnabled(value: boolean);
|
|
28
|
+
get remoteRowsChange$(): import("rxjs").Observable<void>;
|
|
29
|
+
get rowsRemoved$(): import("rxjs").Observable<Row[]>;
|
|
30
|
+
get hasData(): boolean;
|
|
31
|
+
get operation(): FsListState;
|
|
32
|
+
set visibleRows(value: any[]);
|
|
33
|
+
get visibleRowsCount(): number;
|
|
34
|
+
get hasGroups(): (row: any) => any[];
|
|
35
|
+
get reorderData(): import("../interfaces/listconfig.interface").FsListReorderData[];
|
|
36
|
+
setGroupConfig(group: FsListGroupConfig): void;
|
|
37
|
+
setAdditionalConfigs(configs: {
|
|
38
|
+
scrollable: boolean;
|
|
39
|
+
loadMoreEnabled: boolean;
|
|
40
|
+
}): void;
|
|
41
|
+
/**
|
|
42
|
+
* Rows what was received from fetch function
|
|
43
|
+
* @param rows
|
|
44
|
+
*/
|
|
45
|
+
setRowsFromResponse(rows: any[]): void;
|
|
46
|
+
/**
|
|
47
|
+
* Set current operation for list data flow
|
|
48
|
+
* @param value
|
|
49
|
+
*/
|
|
50
|
+
setOperation(value: FsListState): void;
|
|
51
|
+
/**
|
|
52
|
+
* Remove rows from visible
|
|
53
|
+
*/
|
|
54
|
+
clearRows(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Replace data for specified row
|
|
57
|
+
* @param targetRow
|
|
58
|
+
* @param trackBy
|
|
59
|
+
*/
|
|
60
|
+
replaceData(targetRow: FsListAbstractRow, trackBy?: FsListTrackByTargetRowFn): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Update data for specified row
|
|
63
|
+
* @param rows
|
|
64
|
+
* @param trackBy
|
|
65
|
+
*/
|
|
66
|
+
updateData(rows: FsListAbstractRow | FsListAbstractRow[], trackBy?: FsListTrackByTargetRowFn): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Remove data for specified row
|
|
69
|
+
* @param data
|
|
70
|
+
*/
|
|
71
|
+
removeData(data: FsListAbstractRow | FsListAbstractRow[] | FsListTrackByTargetRowFn): boolean;
|
|
72
|
+
swapRows(row1: any, row2: any, selectedRows?: Row[], isMultipleDrag?: boolean): void;
|
|
73
|
+
destroy(): void;
|
|
74
|
+
toggleRowGroup(rowData: any): void;
|
|
75
|
+
finishReorder(): void;
|
|
76
|
+
private _updateRowsStack;
|
|
77
|
+
private _extendRowsStack;
|
|
78
|
+
private _destroyRowsStack;
|
|
79
|
+
private _updateVisibleRows;
|
|
80
|
+
private updateRow;
|
|
81
|
+
/**
|
|
82
|
+
* Remove row from
|
|
83
|
+
* @param targetRow
|
|
84
|
+
* @param trackBy
|
|
85
|
+
*/
|
|
86
|
+
private removeRow;
|
|
87
|
+
/**
|
|
88
|
+
* Split existing rows by groups and store them for future use
|
|
89
|
+
*/
|
|
90
|
+
private groupRowsBy;
|
|
91
|
+
}
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
-
import { PaginationController } from '../classes/pagination-controller';
|
|
3
|
-
import { SortingController } from '../classes/sorting-controller';
|
|
4
|
-
import { PersistanceController } from './persistance-controller';
|
|
5
|
-
import { FsListSortConfig } from '../interfaces';
|
|
6
|
-
export declare class ExternalParamsController {
|
|
7
|
-
private _router;
|
|
8
|
-
private _route;
|
|
9
|
-
private _persistance;
|
|
10
|
-
private _paginator;
|
|
11
|
-
private _sorting;
|
|
12
|
-
private _queryParamsEnabled;
|
|
13
|
-
private _externalParams;
|
|
14
|
-
private _destroy$;
|
|
15
|
-
constructor(_router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _paginator: PaginationController, _sorting: SortingController, _queryParamsEnabled: boolean);
|
|
16
|
-
get externalSorting(): FsListSortConfig;
|
|
17
|
-
private get _enabled();
|
|
18
|
-
private get _page();
|
|
19
|
-
private get _limit();
|
|
20
|
-
private get _sortName();
|
|
21
|
-
private get _sortDirection();
|
|
22
|
-
initialize(): void;
|
|
23
|
-
clearSortingParams(): void;
|
|
24
|
-
destroy(): void;
|
|
25
|
-
private _restorePaginationParams;
|
|
26
|
-
private _restoreSortingParams;
|
|
27
|
-
private _listenPaginatorChanges;
|
|
28
|
-
private _listenSortingChanges;
|
|
29
|
-
private _updateSortingParams;
|
|
30
|
-
private _updatePaginationParams;
|
|
31
|
-
}
|
|
1
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
+
import { PaginationController } from '../classes/pagination-controller';
|
|
3
|
+
import { SortingController } from '../classes/sorting-controller';
|
|
4
|
+
import { PersistanceController } from './persistance-controller';
|
|
5
|
+
import { FsListSortConfig } from '../interfaces';
|
|
6
|
+
export declare class ExternalParamsController {
|
|
7
|
+
private _router;
|
|
8
|
+
private _route;
|
|
9
|
+
private _persistance;
|
|
10
|
+
private _paginator;
|
|
11
|
+
private _sorting;
|
|
12
|
+
private _queryParamsEnabled;
|
|
13
|
+
private _externalParams;
|
|
14
|
+
private _destroy$;
|
|
15
|
+
constructor(_router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _paginator: PaginationController, _sorting: SortingController, _queryParamsEnabled: boolean);
|
|
16
|
+
get externalSorting(): FsListSortConfig;
|
|
17
|
+
private get _enabled();
|
|
18
|
+
private get _page();
|
|
19
|
+
private get _limit();
|
|
20
|
+
private get _sortName();
|
|
21
|
+
private get _sortDirection();
|
|
22
|
+
initialize(): void;
|
|
23
|
+
clearSortingParams(): void;
|
|
24
|
+
destroy(): void;
|
|
25
|
+
private _restorePaginationParams;
|
|
26
|
+
private _restoreSortingParams;
|
|
27
|
+
private _listenPaginatorChanges;
|
|
28
|
+
private _listenSortingChanges;
|
|
29
|
+
private _updateSortingParams;
|
|
30
|
+
private _updatePaginationParams;
|
|
31
|
+
}
|
package/app/classes/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ActionsController } from './actions-controller';
|
|
2
|
-
export { ColumnsController } from './columns-controller';
|
|
1
|
+
export { ActionsController } from './actions-controller';
|
|
2
|
+
export { ColumnsController } from './columns-controller';
|