@firestitch/list 12.12.3 → 12.12.4
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/data-controller.d.ts +2 -1
- package/app/classes/reorder-controller.d.ts +7 -2
- package/app/classes/selection-controller.d.ts +5 -0
- package/app/components/body/body.component.d.ts +2 -2
- package/app/components/body/row/actions/actions.component.d.ts +0 -1
- package/app/components/body/row/menu-action/menu-action.component.d.ts +3 -1
- package/app/components/body/row/row.component.d.ts +2 -0
- package/app/components/list/list.component.d.ts +14 -7
- package/app/directives/draggable-list/draggable-list.directive.d.ts +12 -3
- package/app/directives/draggable-row/draggable-row.directive.d.ts +2 -0
- package/app/directives/heading/heading.directive.d.ts +5 -0
- package/app/directives/index.d.ts +2 -0
- package/app/directives/subheading/subheading.directive.d.ts +5 -0
- package/app/fs-list.module.d.ts +21 -19
- package/app/interfaces/listconfig.interface.d.ts +7 -4
- package/app/models/row/group-footer-row.d.ts +1 -1
- package/app/models/row/group-row.d.ts +1 -0
- package/app/models/row-action.model.d.ts +0 -2
- package/app/models/row.d.ts +1 -1
- package/app/pipes/action-label.d.ts +8 -0
- package/app/pipes/index.d.ts +1 -0
- package/bundles/firestitch-list.umd.js +435 -198
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/data-controller.js +36 -18
- package/esm2015/app/classes/list-controller.js +2 -3
- package/esm2015/app/classes/reorder-controller.js +21 -7
- package/esm2015/app/classes/selection-controller.js +16 -2
- package/esm2015/app/components/body/body.component.js +4 -5
- package/esm2015/app/components/body/row/actions/actions.component.js +3 -8
- package/esm2015/app/components/body/row/cell/cell.component.js +22 -7
- package/esm2015/app/components/body/row/inline-action/inline-action.component.js +3 -4
- package/esm2015/app/components/body/row/menu-action/menu-action.component.js +7 -3
- package/esm2015/app/components/body/row/row.component.js +16 -7
- package/esm2015/app/components/footer/footer-row/footer-row.component.js +2 -3
- package/esm2015/app/components/head/head.component.js +2 -3
- package/esm2015/app/components/list/list.component.js +48 -26
- package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +2 -3
- package/esm2015/app/components/pagination/pagination.component.js +4 -5
- package/esm2015/app/components/status/status.component.js +3 -5
- package/esm2015/app/directives/draggable-list/draggable-list.directive.js +97 -32
- package/esm2015/app/directives/draggable-row/draggable-row.directive.js +9 -1
- package/esm2015/app/directives/heading/heading.directive.js +13 -0
- package/esm2015/app/directives/index.js +3 -0
- package/esm2015/app/directives/subheading/subheading.directive.js +13 -0
- package/esm2015/app/fs-list.module.js +18 -9
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/esm2015/app/models/row/child-row.js +1 -1
- package/esm2015/app/models/row/group-footer-row.js +2 -2
- package/esm2015/app/models/row/group-row.js +5 -1
- package/esm2015/app/models/row-action.model.js +8 -22
- package/esm2015/app/models/row.js +2 -2
- package/esm2015/app/pipes/action-label.js +17 -0
- package/esm2015/app/pipes/index.js +2 -0
- package/esm2015/public_api.js +3 -2
- package/fesm2015/firestitch-list.js +347 -156
- package/fesm2015/firestitch-list.js.map +1 -1
- package/package.json +2 -2
- package/public_api.d.ts +2 -1
|
@@ -69,9 +69,10 @@ export declare class DataController {
|
|
|
69
69
|
* @param data
|
|
70
70
|
*/
|
|
71
71
|
removeData(data: FsListAbstractRow | FsListAbstractRow[] | FsListTrackByTargetRowFn): boolean;
|
|
72
|
-
swapRows(row1: any, row2: any): void;
|
|
72
|
+
swapRows(row1: any, row2: any, selectedRows?: Row[], isMultipleDrag?: boolean): void;
|
|
73
73
|
destroy(): void;
|
|
74
74
|
toggleRowGroup(rowData: any): void;
|
|
75
|
+
finishReorder(): void;
|
|
75
76
|
private _updateRowsStack;
|
|
76
77
|
private _extendRowsStack;
|
|
77
78
|
private _destroyRowsStack;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { OnDestroy } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
|
|
3
|
+
import { FsListReorderConfig, FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
|
|
4
4
|
import { DataController } from './data-controller';
|
|
5
5
|
import { ActionsController } from './actions-controller';
|
|
6
|
+
import { SelectionController } from './selection-controller';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
7
8
|
export declare enum ReorderPosition {
|
|
8
9
|
Left = "left",
|
|
@@ -23,8 +24,10 @@ export declare class ReorderController implements OnDestroy {
|
|
|
23
24
|
menu: boolean;
|
|
24
25
|
position: ReorderPosition;
|
|
25
26
|
strategy: ReorderStrategy;
|
|
27
|
+
multiple: boolean;
|
|
26
28
|
private _dataController;
|
|
27
29
|
private _actionsController;
|
|
30
|
+
private _selectionController;
|
|
28
31
|
private _enabled$;
|
|
29
32
|
private _manualReorderActivated$;
|
|
30
33
|
private _reorderDisabled$;
|
|
@@ -34,12 +37,14 @@ export declare class ReorderController implements OnDestroy {
|
|
|
34
37
|
get enabled(): boolean;
|
|
35
38
|
set enabled(value: boolean);
|
|
36
39
|
get dataController(): DataController;
|
|
40
|
+
get selectionController(): SelectionController;
|
|
37
41
|
get manualReorderActivated$(): Observable<boolean>;
|
|
42
|
+
get manualReorderActivated(): boolean;
|
|
38
43
|
get leftReorderActivated$(): Observable<boolean>;
|
|
39
44
|
get rightReorderActivated$(): Observable<boolean>;
|
|
40
45
|
get reorderDisabled$(): Observable<boolean>;
|
|
41
46
|
get reorderDisabled(): boolean;
|
|
42
|
-
initWithConfig(data:
|
|
47
|
+
initWithConfig(data: FsListReorderConfig, dataController: DataController, actionsController: ActionsController, selectionController: SelectionController): void;
|
|
43
48
|
enableReorder(): void;
|
|
44
49
|
disableReorder(): void;
|
|
45
50
|
/**
|
|
@@ -27,7 +27,10 @@ export declare class SelectionController {
|
|
|
27
27
|
private _visibleRecordsCount;
|
|
28
28
|
private _totalRecordsCount;
|
|
29
29
|
private _destroy$;
|
|
30
|
+
private _disabled$;
|
|
30
31
|
constructor(config: FsListSelectionConfig, _trackBy: string, _selectionDialog: SelectionDialog);
|
|
32
|
+
get disabled(): boolean;
|
|
33
|
+
get disabled$(): Observable<boolean>;
|
|
31
34
|
get selectedAll(): boolean;
|
|
32
35
|
get selectionChange$(): Observable<{
|
|
33
36
|
type: SelectionChangeType;
|
|
@@ -62,6 +65,8 @@ export declare class SelectionController {
|
|
|
62
65
|
*/
|
|
63
66
|
updateTotalRecordsCount(count: number): void;
|
|
64
67
|
pageChanged(infinityScrollEnabled: any): void;
|
|
68
|
+
enableSelection(): void;
|
|
69
|
+
disableSelection(): void;
|
|
65
70
|
/**
|
|
66
71
|
* Method will be called from List for remove row if it was selected
|
|
67
72
|
*
|
|
@@ -5,7 +5,7 @@ import { SelectionController } from '../../classes/selection-controller';
|
|
|
5
5
|
import { Row } from '../../models/row';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class FsBodyComponent implements DoCheck, OnDestroy {
|
|
8
|
-
|
|
8
|
+
reorderController: ReorderController;
|
|
9
9
|
private el;
|
|
10
10
|
private cdRef;
|
|
11
11
|
private differs;
|
|
@@ -24,7 +24,7 @@ export declare class FsBodyComponent implements DoCheck, OnDestroy {
|
|
|
24
24
|
headerTemplate: TemplateRef<any>;
|
|
25
25
|
private _rowsDiffer;
|
|
26
26
|
private _destroy$;
|
|
27
|
-
constructor(
|
|
27
|
+
constructor(reorderController: ReorderController, el: ElementRef, cdRef: ChangeDetectorRef, differs: IterableDiffers);
|
|
28
28
|
ngDoCheck(): void;
|
|
29
29
|
ngOnDestroy(): void;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsBodyComponent, never>;
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Row } from '../../../../models/row';
|
|
2
3
|
import { FsListRowActionFile } from '../../../../interfaces/listconfig.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class FsRowMenuActionComponent {
|
|
6
|
+
row: Row;
|
|
5
7
|
icon: string;
|
|
6
8
|
label: string;
|
|
7
9
|
file: FsListRowActionFile;
|
|
8
10
|
fileSelect: EventEmitter<any>;
|
|
9
11
|
fileError: EventEmitter<any>;
|
|
10
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsRowMenuActionComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsRowMenuActionComponent, "fs-list-row-menu-action", never, { "icon": "icon"; "label": "label"; "file": "file"; }, { "fileSelect": "fileSelect"; "fileError": "fileError"; }, never, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsRowMenuActionComponent, "fs-list-row-menu-action", never, { "row": "row"; "icon": "icon"; "label": "label"; "file": "file"; }, { "fileSelect": "fileSelect"; "fileError": "fileError"; }, never, never>;
|
|
12
14
|
}
|
|
@@ -42,6 +42,8 @@ export declare class FsRowComponent implements OnInit, DoCheck, OnDestroy {
|
|
|
42
42
|
get isGroupRow(): boolean;
|
|
43
43
|
get isChildRow(): boolean;
|
|
44
44
|
get isGroupFooterRow(): boolean;
|
|
45
|
+
get isDragDisabled(): boolean;
|
|
46
|
+
get isMultipleSelection(): boolean;
|
|
45
47
|
get rowCssClass(): string;
|
|
46
48
|
get dragCellVisible(): boolean;
|
|
47
49
|
ngOnInit(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
3
3
|
import { Location } from '@angular/common';
|
|
4
4
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
@@ -14,9 +14,11 @@ import { PersistanceController } from '../../classes/persistance-controller';
|
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export declare class FsListComponent implements OnInit, OnDestroy {
|
|
16
16
|
reorderController: ReorderController;
|
|
17
|
-
private _el;
|
|
18
17
|
private _defaultOptions;
|
|
19
18
|
private fsScroll;
|
|
19
|
+
private _dialogRef;
|
|
20
|
+
private _drawerRef;
|
|
21
|
+
private _el;
|
|
20
22
|
private selectionDialog;
|
|
21
23
|
private dialog;
|
|
22
24
|
private cdRef;
|
|
@@ -25,13 +27,12 @@ export declare class FsListComponent implements OnInit, OnDestroy {
|
|
|
25
27
|
private _route;
|
|
26
28
|
private _persistance;
|
|
27
29
|
private _location;
|
|
28
|
-
private _dialogRef;
|
|
29
|
-
private _drawerRef;
|
|
30
30
|
classFsList: boolean;
|
|
31
31
|
set config(config: FsListConfig);
|
|
32
32
|
loaderLines: number;
|
|
33
33
|
filtersReady: EventEmitter<void>;
|
|
34
34
|
list: List;
|
|
35
|
+
keywordVisible: boolean;
|
|
35
36
|
private listColumnDirectives;
|
|
36
37
|
rowRemoved: EventEmitter<any>;
|
|
37
38
|
firstLoad: boolean;
|
|
@@ -47,12 +48,16 @@ export declare class FsListComponent implements OnInit, OnDestroy {
|
|
|
47
48
|
*/
|
|
48
49
|
private set columnTemplates(value);
|
|
49
50
|
private set _emptyStateTemplate(value);
|
|
50
|
-
|
|
51
|
+
headingTemplate: TemplateRef<any>;
|
|
52
|
+
subheadingTemplate: TemplateRef<any>;
|
|
53
|
+
constructor(reorderController: ReorderController, _defaultOptions: any, fsScroll: FsScrollService, _dialogRef: MatDialogRef<any>, _drawerRef: DrawerRef<any>, _el: ElementRef, selectionDialog: SelectionDialog, dialog: MatDialog, cdRef: ChangeDetectorRef, _groupExpandNotifier: GroupExpandNotifierService, _router: Router, _route: ActivatedRoute, _persistance: PersistanceController, _location: Location);
|
|
51
54
|
/**
|
|
52
55
|
* Return reference for filter
|
|
53
56
|
*/
|
|
54
57
|
get filterRef(): FilterComponent;
|
|
55
58
|
get groupEnabled(): boolean;
|
|
59
|
+
get hasFilterKeyword(): boolean;
|
|
60
|
+
get hasStatus(): boolean;
|
|
56
61
|
get paginatorVisible(): boolean;
|
|
57
62
|
set groupEnabled(value: boolean);
|
|
58
63
|
get filtersQuery(): Record<string, unknown>;
|
|
@@ -69,6 +74,8 @@ export declare class FsListComponent implements OnInit, OnDestroy {
|
|
|
69
74
|
replaceRow(row: FsListAbstractRow, trackBy?: FsListTrackByTargetRowFn): boolean;
|
|
70
75
|
updateSelectionConfig(config: FsListSelectionConfig): void;
|
|
71
76
|
resetSelectionActions(): void;
|
|
77
|
+
enableSelection(): void;
|
|
78
|
+
disableSelection(): void;
|
|
72
79
|
removeData(data: FsListAbstractRow | FsListAbstractRow[] | FsListTrackByTargetRowFn): boolean;
|
|
73
80
|
setHeading(heading: string): void;
|
|
74
81
|
setSubheading(subheading: string): void;
|
|
@@ -108,6 +115,6 @@ export declare class FsListComponent implements OnInit, OnDestroy {
|
|
|
108
115
|
private _listenFiltersQueryChange;
|
|
109
116
|
private _configMergeCustomizer;
|
|
110
117
|
private _restorePersistance;
|
|
111
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FsListComponent, [null,
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FsListComponent, "fs-list", never, { "config": "config"; "loaderLines": "loaderLines"; }, { "filtersReady": "filtersReady"; }, ["_emptyStateTemplate", "columnTemplates"], ["[fs-list-content]"]>;
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsListComponent, [null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, null, null, null, null, null, null, null, null, null]>;
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FsListComponent, "fs-list", never, { "config": "config"; "loaderLines": "loaderLines"; }, { "filtersReady": "filtersReady"; }, ["_emptyStateTemplate", "headingTemplate", "subheadingTemplate", "columnTemplates"], ["[fs-list-content]"]>;
|
|
113
120
|
}
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, NgZone } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, NgZone, Renderer2 } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ReorderController } from '../../classes/reorder-controller';
|
|
4
4
|
import { Row } from '../../models/row';
|
|
5
|
+
import { FsListDraggableRowDirective } from '../draggable-row/draggable-row.directive';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class FsListDraggableListDirective {
|
|
7
8
|
private _cdRef;
|
|
8
9
|
private _zone;
|
|
9
10
|
private _containerElement;
|
|
10
11
|
private _reorderController;
|
|
12
|
+
private _renderer;
|
|
11
13
|
private _draggableElement;
|
|
12
14
|
private _draggableElementPreview;
|
|
15
|
+
private _multipleDraggableElementPreview;
|
|
13
16
|
private _draggableElementHeight;
|
|
14
17
|
private _draggableElementIndex;
|
|
15
18
|
private _dragToHandler;
|
|
@@ -20,11 +23,16 @@ export declare class FsListDraggableListDirective {
|
|
|
20
23
|
private _dragStart$;
|
|
21
24
|
private _dragEnd$;
|
|
22
25
|
private _rows;
|
|
26
|
+
private _draggableChildrenDirectives;
|
|
27
|
+
private _selectedRowsDirectives;
|
|
23
28
|
private _destroy$;
|
|
24
|
-
constructor(_cdRef: ChangeDetectorRef, _zone: NgZone, _containerElement: ElementRef, _reorderController: ReorderController);
|
|
29
|
+
constructor(_cdRef: ChangeDetectorRef, _zone: NgZone, _containerElement: ElementRef, _reorderController: ReorderController, _renderer: Renderer2);
|
|
25
30
|
get dragStart$(): Observable<void>;
|
|
26
31
|
get dragEnd$(): Observable<void>;
|
|
27
32
|
get draggableItem(): Row;
|
|
33
|
+
private get _isMultipleDrag();
|
|
34
|
+
addDraggableDirective(dir: FsListDraggableRowDirective): void;
|
|
35
|
+
removeDraggableDirective(dir: FsListDraggableRowDirective): void;
|
|
28
36
|
/**
|
|
29
37
|
* Prepare draggable elements and add events
|
|
30
38
|
* @param draggableElement
|
|
@@ -56,7 +64,7 @@ export declare class FsListDraggableListDirective {
|
|
|
56
64
|
*/
|
|
57
65
|
private initDraggableElement;
|
|
58
66
|
/**
|
|
59
|
-
* Looking by stored row
|
|
67
|
+
* Looking by stored row elements for overlapped row
|
|
60
68
|
* @param event
|
|
61
69
|
*/
|
|
62
70
|
private lookupElementUnder;
|
|
@@ -70,6 +78,7 @@ export declare class FsListDraggableListDirective {
|
|
|
70
78
|
*/
|
|
71
79
|
private updateDraggableDims;
|
|
72
80
|
private _waitUntilIsNotDone;
|
|
81
|
+
private _detectSelectedRows;
|
|
73
82
|
/**
|
|
74
83
|
* Fix background when mobile
|
|
75
84
|
* @param e
|
|
@@ -11,8 +11,10 @@ export declare class FsListDraggableRowDirective implements OnInit, OnDestroy {
|
|
|
11
11
|
row: Row;
|
|
12
12
|
private _destroy$;
|
|
13
13
|
constructor(_el: ElementRef, _renderer: Renderer2, _reorderController: ReorderController, _draggableList: FsListDraggableListDirective);
|
|
14
|
+
get elRef(): ElementRef;
|
|
14
15
|
ngOnInit(): void;
|
|
15
16
|
ngOnDestroy(): void;
|
|
17
|
+
dragHide(): void;
|
|
16
18
|
private _listenDragEvents;
|
|
17
19
|
private _markReadyToSwapRows;
|
|
18
20
|
private _unmarkRows;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FsListHeadingDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsListHeadingDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsListHeadingDirective, "[fs-list-heading],[fsListHeading]", never, {}, {}, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FsListSubheadingDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FsListSubheadingDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FsListSubheadingDirective, "[fs-list-subheading],[fsListSubheading]", never, {}, {}, never>;
|
|
5
|
+
}
|
package/app/fs-list.module.d.ts
CHANGED
|
@@ -30,28 +30,30 @@ import * as i26 from "./directives/draggable-row/draggable-row.directive";
|
|
|
30
30
|
import * as i27 from "./directives/empty-state/empty-state.directive";
|
|
31
31
|
import * as i28 from "./directives/content/content.directive";
|
|
32
32
|
import * as i29 from "./directives/content-init/content-init.directive";
|
|
33
|
-
import * as i30 from "./
|
|
34
|
-
import * as i31 from "
|
|
35
|
-
import * as i32 from "
|
|
36
|
-
import * as i33 from "
|
|
37
|
-
import * as i34 from "@angular/
|
|
38
|
-
import * as i35 from "@angular/
|
|
39
|
-
import * as i36 from "@angular/material/
|
|
40
|
-
import * as i37 from "@angular/material/
|
|
41
|
-
import * as i38 from "@angular/material/
|
|
42
|
-
import * as i39 from "@
|
|
43
|
-
import * as i40 from "@
|
|
44
|
-
import * as i41 from "@angular/
|
|
45
|
-
import * as i42 from "@firestitch/
|
|
46
|
-
import * as i43 from "@firestitch/
|
|
47
|
-
import * as i44 from "@
|
|
48
|
-
import * as i45 from "@
|
|
49
|
-
import * as i46 from "@
|
|
50
|
-
import * as i47 from "@
|
|
33
|
+
import * as i30 from "./directives/subheading/subheading.directive";
|
|
34
|
+
import * as i31 from "./directives/heading/heading.directive";
|
|
35
|
+
import * as i32 from "./components/customize-cols/customize-cols.component";
|
|
36
|
+
import * as i33 from "./pipes/action-label";
|
|
37
|
+
import * as i34 from "@angular/common";
|
|
38
|
+
import * as i35 from "@angular/router";
|
|
39
|
+
import * as i36 from "@angular/material/button";
|
|
40
|
+
import * as i37 from "@angular/material/icon";
|
|
41
|
+
import * as i38 from "@angular/material/menu";
|
|
42
|
+
import * as i39 from "@angular/material/progress-spinner";
|
|
43
|
+
import * as i40 from "@angular/material/checkbox";
|
|
44
|
+
import * as i41 from "@angular/material/core";
|
|
45
|
+
import * as i42 from "@firestitch/filter";
|
|
46
|
+
import * as i43 from "@firestitch/menu";
|
|
47
|
+
import * as i44 from "@firestitch/scroll";
|
|
48
|
+
import * as i45 from "@firestitch/prompt";
|
|
49
|
+
import * as i46 from "@angular/material/dialog";
|
|
50
|
+
import * as i47 from "@angular/material/tooltip";
|
|
51
|
+
import * as i48 from "@firestitch/file";
|
|
52
|
+
import * as i49 from "@firestitch/common";
|
|
51
53
|
export declare class FsListModule {
|
|
52
54
|
static forRoot(config?: FsListConfig): ModuleWithProviders<FsListModule>;
|
|
53
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<FsListModule, never>;
|
|
54
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FsListModule, [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i3.FsRowActionsComponent, typeof i4.FsRowInlineActionComponent, typeof i5.FsRowMenuActionComponent, typeof i6.FsCellComponent, typeof i7.FsFooterRowComponent, typeof i8.FsFooterCellComponent, typeof i9.FsStatusComponent, typeof i10.FsListLoaderComponent, typeof i11.FsListSavedFiltersComponent, typeof i12.FsListManageSavedFiltersComponent, typeof i13.FsHeadComponent, typeof i14.FsHeadCellComponent, typeof i15.FsBodyComponent, typeof i16.FsFooterComponent, typeof i17.FsPaginationComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i25.FsListDraggableListDirective, typeof i26.FsListDraggableRowDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective, typeof i29.FsListContentInitDirective, typeof i30.
|
|
56
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FsListModule, [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i3.FsRowActionsComponent, typeof i4.FsRowInlineActionComponent, typeof i5.FsRowMenuActionComponent, typeof i6.FsCellComponent, typeof i7.FsFooterRowComponent, typeof i8.FsFooterCellComponent, typeof i9.FsStatusComponent, typeof i10.FsListLoaderComponent, typeof i11.FsListSavedFiltersComponent, typeof i12.FsListManageSavedFiltersComponent, typeof i13.FsHeadComponent, typeof i14.FsHeadCellComponent, typeof i15.FsBodyComponent, typeof i16.FsFooterComponent, typeof i17.FsPaginationComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i25.FsListDraggableListDirective, typeof i26.FsListDraggableRowDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective, typeof i29.FsListContentInitDirective, typeof i30.FsListSubheadingDirective, typeof i31.FsListHeadingDirective, typeof i32.CustomizeColsDialogComponent, typeof i33.ActionLabelPipe], [typeof i34.CommonModule, typeof i35.RouterModule, typeof i36.MatButtonModule, typeof i37.MatIconModule, typeof i38.MatMenuModule, typeof i39.MatProgressSpinnerModule, typeof i40.MatCheckboxModule, typeof i41.MatRippleModule, typeof i42.FsFilterModule, typeof i43.FsMenuModule, typeof i44.FsScrollModule, typeof i45.FsPromptModule, typeof i46.MatDialogModule, typeof i47.MatTooltipModule, typeof i48.FsFileModule, typeof i49.FsCommonModule], [typeof i1.FsListComponent, typeof i2.FsRowComponent, typeof i6.FsCellComponent, typeof i10.FsListLoaderComponent, typeof i18.FsListColumnDirective, typeof i19.FsListCellDirective, typeof i20.FsListHeaderDirective, typeof i21.FsListFooterDirective, typeof i22.FsListGroupHeaderDirective, typeof i23.FsListGroupFooterDirective, typeof i24.FsListGroupExpandTriggerDirective, typeof i27.FsListEmptyStateDirective, typeof i28.FsListContentDirective, typeof i30.FsListSubheadingDirective, typeof i31.FsListHeadingDirective]>;
|
|
55
57
|
static ɵinj: i0.ɵɵInjectorDeclaration<FsListModule>;
|
|
56
58
|
}
|
|
57
59
|
export declare function FsListConfigFactory(config: FsListConfig): any;
|
|
@@ -3,7 +3,7 @@ import { FsSelectionActionSelected, FsSelectionDialogConfigAction, SelectionRef
|
|
|
3
3
|
import { IFilterConfigItem, IFilterConfigDateItem, FsFilterPersistance, IFilterSavedFiltersConfig, FsFilterAction, ChangeFn } from '@firestitch/filter';
|
|
4
4
|
import { FsFile } from '@firestitch/file';
|
|
5
5
|
import { ActionType } from '../enums/button-type.enum';
|
|
6
|
-
import { ReorderPosition
|
|
6
|
+
import { ReorderPosition } from '../classes/reorder-controller';
|
|
7
7
|
import { PaginationStrategy } from '../enums/pagination-strategy.enum';
|
|
8
8
|
import { RowType } from '../enums/row-type.enum';
|
|
9
9
|
import { FsListState } from '../enums/state.enum';
|
|
@@ -61,7 +61,7 @@ export interface FsListGroupConfig {
|
|
|
61
61
|
initialExpand?: boolean;
|
|
62
62
|
groupBy?: (row: any) => any;
|
|
63
63
|
compareBy?: (row: any) => any;
|
|
64
|
-
footer?: (row: any) => boolean;
|
|
64
|
+
footer?: (row: any, group?: any) => boolean;
|
|
65
65
|
actions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
66
66
|
}
|
|
67
67
|
export interface FsListLoadMoreConfig {
|
|
@@ -73,9 +73,12 @@ export interface FsListReorderConfig {
|
|
|
73
73
|
done?: FsListReorderDoneCallback;
|
|
74
74
|
moveDrop?: FsListReorderMoveInGroupCallback;
|
|
75
75
|
position?: ReorderPosition;
|
|
76
|
-
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
toggle?: boolean;
|
|
77
78
|
label?: string;
|
|
78
79
|
menu?: boolean;
|
|
80
|
+
multiple?: boolean;
|
|
81
|
+
status?: boolean;
|
|
79
82
|
}
|
|
80
83
|
export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
|
|
81
84
|
export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
|
|
@@ -133,6 +136,7 @@ export interface FsListSelectionConfig {
|
|
|
133
136
|
actionSelected?: (action: FsListActionSelected) => Observable<boolean>;
|
|
134
137
|
allSelected?: () => void;
|
|
135
138
|
cancelled?: () => void;
|
|
139
|
+
disabled?: boolean;
|
|
136
140
|
selectAll?: boolean;
|
|
137
141
|
selectionChanged?: (data: any, selectedAll: boolean, selectionRef: SelectionRef) => FsSelectionDialogConfigAction[] | Observable<FsSelectionDialogConfigAction[] | void> | void;
|
|
138
142
|
}
|
|
@@ -246,5 +250,4 @@ export declare type FsListAfterContentInitFn = (query: Record<string, any>, data
|
|
|
246
250
|
export interface FsListRowClassOptions {
|
|
247
251
|
index: number;
|
|
248
252
|
groupIndex?: number;
|
|
249
|
-
groupChildIndex?: number;
|
|
250
253
|
}
|
|
@@ -5,6 +5,7 @@ export declare class GroupRow extends BaseRow {
|
|
|
5
5
|
children: (ChildRow | GroupFooterRow)[];
|
|
6
6
|
private readonly _expanded;
|
|
7
7
|
constructor(data?: any, initialExpand?: boolean);
|
|
8
|
+
get childrenData(): any[];
|
|
8
9
|
get isGroup(): boolean;
|
|
9
10
|
get expanded(): boolean;
|
|
10
11
|
get expanded$(): import("rxjs").Observable<boolean>;
|
|
@@ -19,13 +19,11 @@ export declare class RowAction {
|
|
|
19
19
|
click: Function;
|
|
20
20
|
fileConfig: FsListRowActionFile;
|
|
21
21
|
private _linkFn;
|
|
22
|
-
private _labelFn;
|
|
23
22
|
private readonly _isGroup;
|
|
24
23
|
constructor(config?: any);
|
|
25
24
|
get isGroup(): boolean;
|
|
26
25
|
_init(value: any): void;
|
|
27
26
|
checkShowStatus(row: any, index: any): void;
|
|
28
27
|
updateLink(row: any): void;
|
|
29
|
-
updateLabel(row: any): void;
|
|
30
28
|
private clickEvent;
|
|
31
29
|
}
|
package/app/models/row.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export declare class Row {
|
|
|
18
18
|
get type(): RowType;
|
|
19
19
|
get isGroup(): boolean;
|
|
20
20
|
get isChild(): boolean;
|
|
21
|
-
get
|
|
21
|
+
get isGroupFooter(): boolean;
|
|
22
22
|
get parent(): GroupRow;
|
|
23
23
|
get children(): (ChildRow | GroupFooterRow)[];
|
|
24
24
|
get expanded(): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Row } from '../models/row';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ActionLabelPipe implements PipeTransform {
|
|
5
|
+
transform(label: any, row: Row): any;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ActionLabelPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<ActionLabelPipe, "actionLabel">;
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './action-label';
|