@firestitch/list 12.13.1 → 12.13.2
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/list-controller.d.ts +2 -1
- package/app/components/list/list.component.d.ts +3 -2
- package/app/interfaces/listconfig.interface.d.ts +2 -0
- package/bundles/firestitch-list.umd.js +8 -3
- package/bundles/firestitch-list.umd.js.map +1 -1
- package/esm2015/app/classes/list-controller.js +2 -1
- package/esm2015/app/components/list/list.component.js +8 -4
- package/esm2015/app/interfaces/listconfig.interface.js +1 -1
- package/fesm2015/firestitch-list.js +8 -3
- package/fesm2015/firestitch-list.js.map +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import { ChangeFn, FilterConfig, IFilterSavedFiltersConfig } from '@firestitch/f
|
|
|
4
4
|
import { FsScrollInstance, FsScrollService } from '@firestitch/scroll';
|
|
5
5
|
import { SelectionDialog } from '@firestitch/selection';
|
|
6
6
|
import { BehaviorSubject, Observable, Subject } from 'rxjs';
|
|
7
|
-
import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListBeforeFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListScrollableConfig, FsListTrackByFn } from '../interfaces';
|
|
7
|
+
import { FsListAfterContentInitFn, FsListAfterFetchFn, FsListAfterInitFn, FsListBeforeFetchFn, FsListConfig, FsListEmptyStateConfig, FsListFetchFn, FsListFetchSubscription, FsListNoResultsConfig, FsListPersitance, FsListRestoreConfig, FsListScrollableConfig, FsListTrackByFn } from '../interfaces';
|
|
8
8
|
import { ColumnsController } from './columns-controller';
|
|
9
9
|
import { ActionsController } from './index';
|
|
10
10
|
import { DataController } from './data-controller';
|
|
@@ -43,6 +43,7 @@ export declare class List {
|
|
|
43
43
|
beforeFetchFn: FsListBeforeFetchFn;
|
|
44
44
|
afterFetchFn: FsListAfterFetchFn;
|
|
45
45
|
afterContentInit: FsListAfterContentInitFn;
|
|
46
|
+
afterInit: FsListAfterInitFn;
|
|
46
47
|
initialized$: BehaviorSubject<boolean>;
|
|
47
48
|
loading$: BehaviorSubject<boolean>;
|
|
48
49
|
hasRowActions: any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit, TemplateRef, AfterContentInit } 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';
|
|
@@ -12,7 +12,7 @@ import { FsListAbstractRow, FsListAction, FsListConfig, FsListSelectionConfig, F
|
|
|
12
12
|
import { GroupExpandNotifierService } from '../../services/group-expand-notifier.service';
|
|
13
13
|
import { PersistanceController } from '../../classes/persistance-controller';
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
|
-
export declare class FsListComponent implements OnInit, OnDestroy {
|
|
15
|
+
export declare class FsListComponent implements OnInit, OnDestroy, AfterContentInit {
|
|
16
16
|
reorderController: ReorderController;
|
|
17
17
|
private _defaultOptions;
|
|
18
18
|
private fsScroll;
|
|
@@ -62,6 +62,7 @@ export declare class FsListComponent implements OnInit, OnDestroy {
|
|
|
62
62
|
get paginatorVisible(): boolean;
|
|
63
63
|
set groupEnabled(value: boolean);
|
|
64
64
|
get filtersQuery(): Record<string, unknown>;
|
|
65
|
+
ngAfterContentInit(): void;
|
|
65
66
|
ngOnInit(): void;
|
|
66
67
|
ngOnDestroy(): void;
|
|
67
68
|
nextPage(): void;
|
|
@@ -38,6 +38,7 @@ export interface FsListConfig {
|
|
|
38
38
|
afterFetch?: FsListAfterFetchFn;
|
|
39
39
|
beforeFetch?: FsListBeforeFetchFn;
|
|
40
40
|
afterContentInit?: FsListAfterContentInitFn;
|
|
41
|
+
afterInit?: FsListAfterInitFn;
|
|
41
42
|
scrollable?: FsListScrollableConfig;
|
|
42
43
|
selection?: FsListSelectionConfig;
|
|
43
44
|
initialFetch?: boolean;
|
|
@@ -253,3 +254,4 @@ export interface FsListRowClassOptions {
|
|
|
253
254
|
index: number;
|
|
254
255
|
groupIndex?: number;
|
|
255
256
|
}
|
|
257
|
+
export declare type FsListAfterInitFn = (listComponent: any) => void;
|
|
@@ -3712,6 +3712,7 @@
|
|
|
3712
3712
|
this.fetchFn = config.fetch;
|
|
3713
3713
|
this.afterFetchFn = config.afterFetch;
|
|
3714
3714
|
this.beforeFetchFn = config.beforeFetch;
|
|
3715
|
+
this.afterInit = config.afterInit;
|
|
3715
3716
|
this.columns.initConfig(config.column);
|
|
3716
3717
|
this.initDefaultOptions(config);
|
|
3717
3718
|
this.initRestore();
|
|
@@ -6454,6 +6455,11 @@
|
|
|
6454
6455
|
enumerable: false,
|
|
6455
6456
|
configurable: true
|
|
6456
6457
|
});
|
|
6458
|
+
FsListComponent.prototype.ngAfterContentInit = function () {
|
|
6459
|
+
if (this.list.afterInit) {
|
|
6460
|
+
this.list.afterInit(this);
|
|
6461
|
+
}
|
|
6462
|
+
};
|
|
6457
6463
|
FsListComponent.prototype.ngOnInit = function () {
|
|
6458
6464
|
this._subscribeToRemoveRow();
|
|
6459
6465
|
this._subscribeToGroupExpandStatusChange();
|
|
@@ -6586,13 +6592,12 @@
|
|
|
6586
6592
|
if (actionClickFn_1) {
|
|
6587
6593
|
actionClickFn_1(null);
|
|
6588
6594
|
}
|
|
6589
|
-
|
|
6595
|
+
_this.dialog.open(CustomizeColsDialogComponent, {
|
|
6590
6596
|
data: {
|
|
6591
6597
|
columns: _this.list.columns.columnsForDialog,
|
|
6592
6598
|
changeFn: _this.list.columns.changeFn,
|
|
6593
6599
|
},
|
|
6594
|
-
})
|
|
6595
|
-
dialogRef
|
|
6600
|
+
})
|
|
6596
6601
|
.afterClosed()
|
|
6597
6602
|
.pipe(operators.takeUntil(_this.list.onDestroy$), operators.takeUntil(_this._destroy))
|
|
6598
6603
|
.subscribe(function (data) {
|