@firestitch/list 12.17.1 → 12.18.0
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 +179 -179
- 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 +23 -22
- package/app/components/body/row/inline-action/inline-action.component.d.ts +16 -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 +122 -122
- 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 +267 -267
- 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 +59 -59
- 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 +6929 -6909
- 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 -353
- 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 +738 -738
- 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 +98 -98
- package/esm2015/app/components/body/row/cell/cell.component.js +113 -106
- package/esm2015/app/components/body/row/inline-action/inline-action.component.js +39 -39
- package/esm2015/app/components/body/row/menu-action/menu-action.component.js +49 -49
- 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 +31 -31
- 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 +385 -385
- package/esm2015/app/components/loader/loader.component.js +47 -47
- package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +78 -78
- package/esm2015/app/components/pagination/pagination.component.js +44 -44
- package/esm2015/app/components/saved-filters/saved-filters.component.js +33 -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 +12 -12
- package/esm2015/app/directives/content-init/content-init.directive.js +21 -21
- package/esm2015/app/directives/draggable-list/draggable-list.directive.js +328 -328
- package/esm2015/app/directives/draggable-row/draggable-row.directive.js +78 -78
- 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 +244 -244
- 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 +166 -166
- 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 +94 -94
- 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 +5709 -5690
- 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,13 +1,13 @@
|
|
|
1
|
-
import { SortingDirection } from '../models/column.model';
|
|
2
|
-
export declare type ExternalParams = IExternalPaginationParams & IExternalSortingParams;
|
|
3
|
-
export declare type ExternalQueryPagination = Record<keyof IExternalPaginationParams, string>;
|
|
4
|
-
export declare type ExternalQuerySorting = IExternalSortingParams;
|
|
5
|
-
interface IExternalPaginationParams {
|
|
6
|
-
page: number;
|
|
7
|
-
limit: number;
|
|
8
|
-
}
|
|
9
|
-
interface IExternalSortingParams {
|
|
10
|
-
sortName: string;
|
|
11
|
-
sortDirection: SortingDirection;
|
|
12
|
-
}
|
|
13
|
-
export {};
|
|
1
|
+
import { SortingDirection } from '../models/column.model';
|
|
2
|
+
export declare type ExternalParams = IExternalPaginationParams & IExternalSortingParams;
|
|
3
|
+
export declare type ExternalQueryPagination = Record<keyof IExternalPaginationParams, string>;
|
|
4
|
+
export declare type ExternalQuerySorting = IExternalSortingParams;
|
|
5
|
+
interface IExternalPaginationParams {
|
|
6
|
+
page: number;
|
|
7
|
+
limit: number;
|
|
8
|
+
}
|
|
9
|
+
interface IExternalSortingParams {
|
|
10
|
+
sortName: string;
|
|
11
|
+
sortDirection: SortingDirection;
|
|
12
|
+
}
|
|
13
|
+
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './cellconfig.interface';
|
|
2
|
-
export * from './listconfig.interface';
|
|
3
|
-
export * from './pagination.interface';
|
|
1
|
+
export * from './cellconfig.interface';
|
|
2
|
+
export * from './listconfig.interface';
|
|
3
|
+
export * from './pagination.interface';
|
|
@@ -1,267 +1,267 @@
|
|
|
1
|
-
import { FsFile } from '@firestitch/file';
|
|
2
|
-
import { ChangeFn, FsFilterAction, FsFilterPersistance, IFilterConfigDateItem, IFilterConfigItem, IFilterSavedFiltersConfig } from '@firestitch/filter';
|
|
3
|
-
import { FsSelectionActionSelected, FsSelectionDialogConfigAction, SelectionRef } from '@firestitch/selection';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ReorderPosition } from '../classes/reorder-controller';
|
|
6
|
-
import { ActionType } from '../enums/button-type.enum';
|
|
7
|
-
import { PaginationStrategy } from '../enums/pagination-strategy.enum';
|
|
8
|
-
import { RowType } from '../enums/row-type.enum';
|
|
9
|
-
import { FsListState } from '../enums/state.enum';
|
|
10
|
-
export interface FsPaging {
|
|
11
|
-
limits?: number[];
|
|
12
|
-
limit?: number;
|
|
13
|
-
page?: number;
|
|
14
|
-
pages?: number;
|
|
15
|
-
records?: number;
|
|
16
|
-
strategy?: PaginationStrategy;
|
|
17
|
-
}
|
|
18
|
-
export interface FsListConfig {
|
|
19
|
-
heading?: string;
|
|
20
|
-
trackBy?: string;
|
|
21
|
-
subheading?: string;
|
|
22
|
-
status?: boolean;
|
|
23
|
-
rowHighlight?: boolean;
|
|
24
|
-
chips?: boolean;
|
|
25
|
-
column?: FsListColumnConfig;
|
|
26
|
-
autoFocus?: boolean;
|
|
27
|
-
filterInput?: boolean;
|
|
28
|
-
queryParam?: boolean;
|
|
29
|
-
paging?: FsPaging | false;
|
|
30
|
-
loadMore?: FsListLoadMoreConfig | boolean;
|
|
31
|
-
columnDefaults?: Object;
|
|
32
|
-
filters?: (IFilterConfigItem | IFilterConfigDateItem)[];
|
|
33
|
-
savedFilters?: IFilterSavedFiltersConfig;
|
|
34
|
-
persist?: FsListPersitance;
|
|
35
|
-
rowActions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
36
|
-
rowClass?: (row: any, options?: FsListRowClassOptions) => string;
|
|
37
|
-
actions?: FsListAction[];
|
|
38
|
-
fetch?: FsListFetchFn;
|
|
39
|
-
afterFetch?: FsListAfterFetchFn;
|
|
40
|
-
beforeFetch?: FsListBeforeFetchFn;
|
|
41
|
-
afterContentInit?: FsListAfterContentInitFn;
|
|
42
|
-
afterInit?: FsListAfterInitFn;
|
|
43
|
-
scrollable?: FsListScrollableConfig;
|
|
44
|
-
selection?: FsListSelectionConfig;
|
|
45
|
-
initialFetch?: boolean;
|
|
46
|
-
rowEvents?: {
|
|
47
|
-
[name: string]: (event: any) => void;
|
|
48
|
-
};
|
|
49
|
-
header?: FsListHeaderConfig;
|
|
50
|
-
cell?: FsListCellConfig;
|
|
51
|
-
footer?: FsListFooterConfig;
|
|
52
|
-
reorder?: FsListReorderConfig;
|
|
53
|
-
sorts?: FsListSortsConfig[];
|
|
54
|
-
group?: FsListGroupConfig;
|
|
55
|
-
sort?: FsListSortConfig;
|
|
56
|
-
restore?: FsListRestoreConfig;
|
|
57
|
-
noResults?: FsListNoResultsConfig;
|
|
58
|
-
emptyState?: FsListEmptyStateConfig;
|
|
59
|
-
filterInit?: ChangeFn;
|
|
60
|
-
filterChange?: ChangeFn;
|
|
61
|
-
style?: 'line' | 'card';
|
|
62
|
-
}
|
|
63
|
-
export interface FsListGroupConfig {
|
|
64
|
-
enabled?: boolean;
|
|
65
|
-
initialExpand?: boolean;
|
|
66
|
-
groupBy?: (row: any) => any;
|
|
67
|
-
compareBy?: (row: any) => any;
|
|
68
|
-
footer?: (row: {
|
|
69
|
-
[key: string]: any;
|
|
70
|
-
}, group?: {
|
|
71
|
-
[key: string]: any;
|
|
72
|
-
children: {
|
|
73
|
-
[key: string]: any;
|
|
74
|
-
}[];
|
|
75
|
-
}) => boolean;
|
|
76
|
-
actions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
77
|
-
}
|
|
78
|
-
export interface FsListLoadMoreConfig {
|
|
79
|
-
label?: string;
|
|
80
|
-
}
|
|
81
|
-
export interface FsListReorderConfig {
|
|
82
|
-
start?: () => void;
|
|
83
|
-
moved?: FsListReorderMovedCallback;
|
|
84
|
-
done?: FsListReorderDoneCallback;
|
|
85
|
-
moveDrop?: FsListReorderMoveInGroupCallback;
|
|
86
|
-
position?: ReorderPosition;
|
|
87
|
-
disabled?: boolean;
|
|
88
|
-
toggle?: boolean;
|
|
89
|
-
label?: string;
|
|
90
|
-
menu?: boolean;
|
|
91
|
-
multiple?: boolean;
|
|
92
|
-
status?: boolean;
|
|
93
|
-
}
|
|
94
|
-
export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
|
|
95
|
-
export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
|
|
96
|
-
export interface FsListReorderData {
|
|
97
|
-
type: RowType;
|
|
98
|
-
data: any;
|
|
99
|
-
parent: FsListReorderData;
|
|
100
|
-
}
|
|
101
|
-
export declare type FsListReorderMoveInGroupCallback = (data: {
|
|
102
|
-
row1: any;
|
|
103
|
-
row2: any;
|
|
104
|
-
group1: any;
|
|
105
|
-
group2: any;
|
|
106
|
-
}) => boolean;
|
|
107
|
-
export interface FsListHeaderConfig {
|
|
108
|
-
className?: string;
|
|
109
|
-
align?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface FsListCellConfig {
|
|
112
|
-
className?: string;
|
|
113
|
-
align?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface FsListFooterConfig {
|
|
116
|
-
className?: string;
|
|
117
|
-
align?: string;
|
|
118
|
-
}
|
|
119
|
-
export interface FsListSortsConfig {
|
|
120
|
-
name: string;
|
|
121
|
-
value: string;
|
|
122
|
-
direction?: 'asc' | 'desc';
|
|
123
|
-
}
|
|
124
|
-
export interface FsListSortConfig {
|
|
125
|
-
value: string;
|
|
126
|
-
direction?: 'asc' | 'desc';
|
|
127
|
-
}
|
|
128
|
-
export interface FsListScrollableConfig {
|
|
129
|
-
name: string;
|
|
130
|
-
activationDown?: number;
|
|
131
|
-
loaderDiametr?: number;
|
|
132
|
-
status?: boolean;
|
|
133
|
-
}
|
|
134
|
-
export interface FsListRestoreConfig {
|
|
135
|
-
query?: any;
|
|
136
|
-
filter?: boolean | string;
|
|
137
|
-
filterLabel?: string;
|
|
138
|
-
menuLabel?: string;
|
|
139
|
-
click?: (row: FsListAbstractRow, event?: any) => void | Observable<any>;
|
|
140
|
-
reload?: boolean;
|
|
141
|
-
}
|
|
142
|
-
export interface FsListNoResultsConfig {
|
|
143
|
-
message?: string;
|
|
144
|
-
}
|
|
145
|
-
export interface FsListSelectionConfig {
|
|
146
|
-
actions?: FsSelectionDialogConfigAction[];
|
|
147
|
-
actionSelected?: (action: FsListActionSelected) => Observable<boolean>;
|
|
148
|
-
allSelected?: () => void;
|
|
149
|
-
cancelled?: () => void;
|
|
150
|
-
disabled?: boolean;
|
|
151
|
-
selectAll?: boolean;
|
|
152
|
-
selectionChanged?: (data: any, selectedAll: boolean, selectionRef: SelectionRef) => FsSelectionDialogConfigAction[] | Observable<FsSelectionDialogConfigAction[] | void> | void;
|
|
153
|
-
}
|
|
154
|
-
export interface FsListFetchSubscription {
|
|
155
|
-
loadOffset?: boolean;
|
|
156
|
-
}
|
|
157
|
-
export declare type FsListAction = {
|
|
158
|
-
customize?: boolean;
|
|
159
|
-
} & FsFilterAction;
|
|
160
|
-
export interface FsListRowActionGroup {
|
|
161
|
-
label?: string;
|
|
162
|
-
rowActions: FsListRowAction[];
|
|
163
|
-
}
|
|
164
|
-
export interface FsListRowAction {
|
|
165
|
-
label?: string | FsListRowActionLabelFn;
|
|
166
|
-
type?: ActionType;
|
|
167
|
-
className?: string;
|
|
168
|
-
icon?: string;
|
|
169
|
-
menu?: boolean;
|
|
170
|
-
click?: (row: any, event: any, index: any) => void;
|
|
171
|
-
link?: FsListRowActionLinkFn;
|
|
172
|
-
file?: FsListRowActionFile;
|
|
173
|
-
show?: (row: any, index: number) => boolean;
|
|
174
|
-
remove?: {
|
|
175
|
-
title?: string;
|
|
176
|
-
template?: string;
|
|
177
|
-
} | boolean;
|
|
178
|
-
restore?: boolean;
|
|
179
|
-
}
|
|
180
|
-
export interface FsListRowActionFileFn {
|
|
181
|
-
(selection: FsFile | FsFile[], row: FsListAbstractRow, index: number): void;
|
|
182
|
-
}
|
|
183
|
-
export interface FsListRowActionLinkFn {
|
|
184
|
-
(row: FsListAbstractRow): FsListRowActionLink;
|
|
185
|
-
}
|
|
186
|
-
export interface FsListRowActionLabelFn {
|
|
187
|
-
(row: FsListAbstractRow): string;
|
|
188
|
-
}
|
|
189
|
-
export interface FsListRowActionFile {
|
|
190
|
-
select: FsListRowActionFileFn;
|
|
191
|
-
error?: (error: unknown) => void;
|
|
192
|
-
multiple?: boolean;
|
|
193
|
-
accept?: string;
|
|
194
|
-
minWidth?: number;
|
|
195
|
-
minHeight?: number;
|
|
196
|
-
maxWidth?: number;
|
|
197
|
-
maxHeight?: number;
|
|
198
|
-
imageQuality?: number;
|
|
199
|
-
}
|
|
200
|
-
export interface FsListRowActionLink {
|
|
201
|
-
link: any[] | string;
|
|
202
|
-
queryParams?: Record<string, any>;
|
|
203
|
-
target?: string;
|
|
204
|
-
}
|
|
205
|
-
export interface FsListAbstractRow {
|
|
206
|
-
[name: string]: any;
|
|
207
|
-
}
|
|
208
|
-
export interface FsListTrackByFn {
|
|
209
|
-
(row: FsListAbstractRow, index?: number): boolean;
|
|
210
|
-
}
|
|
211
|
-
export interface FsListTrackByTargetRowFn {
|
|
212
|
-
(listRow: FsListAbstractRow, targetRow?: FsListAbstractRow): boolean;
|
|
213
|
-
}
|
|
214
|
-
export interface FsListColumnLoadFn {
|
|
215
|
-
(): Observable<FsListColumn[]>;
|
|
216
|
-
}
|
|
217
|
-
export interface FsListColumnChangeFn {
|
|
218
|
-
(listColumns: FsListColumn[]): void;
|
|
219
|
-
}
|
|
220
|
-
export interface FsListColumnTitleFn {
|
|
221
|
-
(name: string, defaultTitle: string): string;
|
|
222
|
-
}
|
|
223
|
-
export interface FsListColumnTooltipFn {
|
|
224
|
-
(name: string, show: boolean, disabled: boolean): string;
|
|
225
|
-
}
|
|
226
|
-
export interface FsListColumnDisabledFn {
|
|
227
|
-
(name: string): boolean;
|
|
228
|
-
}
|
|
229
|
-
export interface FsListColumnSelectedFn {
|
|
230
|
-
(name: string, show: boolean): boolean;
|
|
231
|
-
}
|
|
232
|
-
export interface FsListColumnConfig {
|
|
233
|
-
load?: FsListColumnLoadFn;
|
|
234
|
-
change?: FsListColumnChangeFn;
|
|
235
|
-
title?: FsListColumnTitleFn;
|
|
236
|
-
tooltip?: FsListColumnTooltipFn;
|
|
237
|
-
disabled?: FsListColumnDisabledFn;
|
|
238
|
-
selected?: FsListColumnSelectedFn;
|
|
239
|
-
}
|
|
240
|
-
export interface FsListColumn {
|
|
241
|
-
name: string;
|
|
242
|
-
show: boolean;
|
|
243
|
-
}
|
|
244
|
-
export interface FsListActionSelected extends FsSelectionActionSelected {
|
|
245
|
-
selected: any[];
|
|
246
|
-
}
|
|
247
|
-
export interface FsListEmptyStateConfig {
|
|
248
|
-
validate: FsListStateValidationFn;
|
|
249
|
-
}
|
|
250
|
-
export interface FsListFetchOptions {
|
|
251
|
-
state: FsListState;
|
|
252
|
-
}
|
|
253
|
-
export declare type FsListPersitance = FsFilterPersistance;
|
|
254
|
-
export declare type FsListStateValidationFn = (filters: any, rows: FsListAbstractRow[]) => boolean;
|
|
255
|
-
export declare type FsListFetchFn = (query: Record<string, any>, options: FsListFetchOptions) => Observable<{
|
|
256
|
-
data: unknown[];
|
|
257
|
-
paging?: FsPaging;
|
|
258
|
-
}>;
|
|
259
|
-
export declare type FsListAfterFetchFn = (query: Record<string, any>, data: unknown[]) => void;
|
|
260
|
-
export declare type FsListBeforeFetchFn = (query: any) => Observable<Record<string, any>>;
|
|
261
|
-
export declare type FsListAfterContentInitFn = (query: Record<string, any>, data: unknown[]) => void;
|
|
262
|
-
export interface FsListRowClassOptions {
|
|
263
|
-
index: number;
|
|
264
|
-
groupIndex?: number;
|
|
265
|
-
type?: RowType;
|
|
266
|
-
}
|
|
267
|
-
export declare type FsListAfterInitFn = (listComponent: any) => void;
|
|
1
|
+
import { FsFile } from '@firestitch/file';
|
|
2
|
+
import { ChangeFn, FsFilterAction, FsFilterPersistance, IFilterConfigDateItem, IFilterConfigItem, IFilterSavedFiltersConfig } from '@firestitch/filter';
|
|
3
|
+
import { FsSelectionActionSelected, FsSelectionDialogConfigAction, SelectionRef } from '@firestitch/selection';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ReorderPosition } from '../classes/reorder-controller';
|
|
6
|
+
import { ActionType } from '../enums/button-type.enum';
|
|
7
|
+
import { PaginationStrategy } from '../enums/pagination-strategy.enum';
|
|
8
|
+
import { RowType } from '../enums/row-type.enum';
|
|
9
|
+
import { FsListState } from '../enums/state.enum';
|
|
10
|
+
export interface FsPaging {
|
|
11
|
+
limits?: number[];
|
|
12
|
+
limit?: number;
|
|
13
|
+
page?: number;
|
|
14
|
+
pages?: number;
|
|
15
|
+
records?: number;
|
|
16
|
+
strategy?: PaginationStrategy;
|
|
17
|
+
}
|
|
18
|
+
export interface FsListConfig {
|
|
19
|
+
heading?: string;
|
|
20
|
+
trackBy?: string;
|
|
21
|
+
subheading?: string;
|
|
22
|
+
status?: boolean;
|
|
23
|
+
rowHighlight?: boolean;
|
|
24
|
+
chips?: boolean;
|
|
25
|
+
column?: FsListColumnConfig;
|
|
26
|
+
autoFocus?: boolean;
|
|
27
|
+
filterInput?: boolean;
|
|
28
|
+
queryParam?: boolean;
|
|
29
|
+
paging?: FsPaging | false;
|
|
30
|
+
loadMore?: FsListLoadMoreConfig | boolean;
|
|
31
|
+
columnDefaults?: Object;
|
|
32
|
+
filters?: (IFilterConfigItem | IFilterConfigDateItem)[];
|
|
33
|
+
savedFilters?: IFilterSavedFiltersConfig;
|
|
34
|
+
persist?: FsListPersitance;
|
|
35
|
+
rowActions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
36
|
+
rowClass?: (row: any, options?: FsListRowClassOptions) => string;
|
|
37
|
+
actions?: FsListAction[];
|
|
38
|
+
fetch?: FsListFetchFn;
|
|
39
|
+
afterFetch?: FsListAfterFetchFn;
|
|
40
|
+
beforeFetch?: FsListBeforeFetchFn;
|
|
41
|
+
afterContentInit?: FsListAfterContentInitFn;
|
|
42
|
+
afterInit?: FsListAfterInitFn;
|
|
43
|
+
scrollable?: FsListScrollableConfig;
|
|
44
|
+
selection?: FsListSelectionConfig;
|
|
45
|
+
initialFetch?: boolean;
|
|
46
|
+
rowEvents?: {
|
|
47
|
+
[name: string]: (event: any) => void;
|
|
48
|
+
};
|
|
49
|
+
header?: FsListHeaderConfig;
|
|
50
|
+
cell?: FsListCellConfig;
|
|
51
|
+
footer?: FsListFooterConfig;
|
|
52
|
+
reorder?: FsListReorderConfig;
|
|
53
|
+
sorts?: FsListSortsConfig[];
|
|
54
|
+
group?: FsListGroupConfig;
|
|
55
|
+
sort?: FsListSortConfig;
|
|
56
|
+
restore?: FsListRestoreConfig;
|
|
57
|
+
noResults?: FsListNoResultsConfig;
|
|
58
|
+
emptyState?: FsListEmptyStateConfig;
|
|
59
|
+
filterInit?: ChangeFn;
|
|
60
|
+
filterChange?: ChangeFn;
|
|
61
|
+
style?: 'line' | 'card';
|
|
62
|
+
}
|
|
63
|
+
export interface FsListGroupConfig {
|
|
64
|
+
enabled?: boolean;
|
|
65
|
+
initialExpand?: boolean;
|
|
66
|
+
groupBy?: (row: any) => any;
|
|
67
|
+
compareBy?: (row: any) => any;
|
|
68
|
+
footer?: (row: {
|
|
69
|
+
[key: string]: any;
|
|
70
|
+
}, group?: {
|
|
71
|
+
[key: string]: any;
|
|
72
|
+
children: {
|
|
73
|
+
[key: string]: any;
|
|
74
|
+
}[];
|
|
75
|
+
}) => boolean;
|
|
76
|
+
actions?: (FsListRowActionGroup | FsListRowAction)[];
|
|
77
|
+
}
|
|
78
|
+
export interface FsListLoadMoreConfig {
|
|
79
|
+
label?: string;
|
|
80
|
+
}
|
|
81
|
+
export interface FsListReorderConfig {
|
|
82
|
+
start?: () => void;
|
|
83
|
+
moved?: FsListReorderMovedCallback;
|
|
84
|
+
done?: FsListReorderDoneCallback;
|
|
85
|
+
moveDrop?: FsListReorderMoveInGroupCallback;
|
|
86
|
+
position?: ReorderPosition;
|
|
87
|
+
disabled?: boolean;
|
|
88
|
+
toggle?: boolean;
|
|
89
|
+
label?: string;
|
|
90
|
+
menu?: boolean;
|
|
91
|
+
multiple?: boolean;
|
|
92
|
+
status?: boolean;
|
|
93
|
+
}
|
|
94
|
+
export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
|
|
95
|
+
export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
|
|
96
|
+
export interface FsListReorderData {
|
|
97
|
+
type: RowType;
|
|
98
|
+
data: any;
|
|
99
|
+
parent: FsListReorderData;
|
|
100
|
+
}
|
|
101
|
+
export declare type FsListReorderMoveInGroupCallback = (data: {
|
|
102
|
+
row1: any;
|
|
103
|
+
row2: any;
|
|
104
|
+
group1: any;
|
|
105
|
+
group2: any;
|
|
106
|
+
}) => boolean;
|
|
107
|
+
export interface FsListHeaderConfig {
|
|
108
|
+
className?: string;
|
|
109
|
+
align?: string;
|
|
110
|
+
}
|
|
111
|
+
export interface FsListCellConfig {
|
|
112
|
+
className?: string;
|
|
113
|
+
align?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface FsListFooterConfig {
|
|
116
|
+
className?: string;
|
|
117
|
+
align?: string;
|
|
118
|
+
}
|
|
119
|
+
export interface FsListSortsConfig {
|
|
120
|
+
name: string;
|
|
121
|
+
value: string;
|
|
122
|
+
direction?: 'asc' | 'desc';
|
|
123
|
+
}
|
|
124
|
+
export interface FsListSortConfig {
|
|
125
|
+
value: string;
|
|
126
|
+
direction?: 'asc' | 'desc';
|
|
127
|
+
}
|
|
128
|
+
export interface FsListScrollableConfig {
|
|
129
|
+
name: string;
|
|
130
|
+
activationDown?: number;
|
|
131
|
+
loaderDiametr?: number;
|
|
132
|
+
status?: boolean;
|
|
133
|
+
}
|
|
134
|
+
export interface FsListRestoreConfig {
|
|
135
|
+
query?: any;
|
|
136
|
+
filter?: boolean | string;
|
|
137
|
+
filterLabel?: string;
|
|
138
|
+
menuLabel?: string;
|
|
139
|
+
click?: (row: FsListAbstractRow, event?: any) => void | Observable<any>;
|
|
140
|
+
reload?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export interface FsListNoResultsConfig {
|
|
143
|
+
message?: string;
|
|
144
|
+
}
|
|
145
|
+
export interface FsListSelectionConfig {
|
|
146
|
+
actions?: FsSelectionDialogConfigAction[];
|
|
147
|
+
actionSelected?: (action: FsListActionSelected) => Observable<boolean>;
|
|
148
|
+
allSelected?: () => void;
|
|
149
|
+
cancelled?: () => void;
|
|
150
|
+
disabled?: boolean;
|
|
151
|
+
selectAll?: boolean;
|
|
152
|
+
selectionChanged?: (data: any, selectedAll: boolean, selectionRef: SelectionRef) => FsSelectionDialogConfigAction[] | Observable<FsSelectionDialogConfigAction[] | void> | void;
|
|
153
|
+
}
|
|
154
|
+
export interface FsListFetchSubscription {
|
|
155
|
+
loadOffset?: boolean;
|
|
156
|
+
}
|
|
157
|
+
export declare type FsListAction = {
|
|
158
|
+
customize?: boolean;
|
|
159
|
+
} & FsFilterAction;
|
|
160
|
+
export interface FsListRowActionGroup {
|
|
161
|
+
label?: string;
|
|
162
|
+
rowActions: FsListRowAction[];
|
|
163
|
+
}
|
|
164
|
+
export interface FsListRowAction {
|
|
165
|
+
label?: string | FsListRowActionLabelFn;
|
|
166
|
+
type?: ActionType;
|
|
167
|
+
className?: string;
|
|
168
|
+
icon?: string;
|
|
169
|
+
menu?: boolean;
|
|
170
|
+
click?: (row: any, event: any, index: any) => void;
|
|
171
|
+
link?: FsListRowActionLinkFn;
|
|
172
|
+
file?: FsListRowActionFile;
|
|
173
|
+
show?: (row: any, index: number) => boolean;
|
|
174
|
+
remove?: {
|
|
175
|
+
title?: string;
|
|
176
|
+
template?: string;
|
|
177
|
+
} | boolean;
|
|
178
|
+
restore?: boolean;
|
|
179
|
+
}
|
|
180
|
+
export interface FsListRowActionFileFn {
|
|
181
|
+
(selection: FsFile | FsFile[], row: FsListAbstractRow, index: number): void;
|
|
182
|
+
}
|
|
183
|
+
export interface FsListRowActionLinkFn {
|
|
184
|
+
(row: FsListAbstractRow): FsListRowActionLink;
|
|
185
|
+
}
|
|
186
|
+
export interface FsListRowActionLabelFn {
|
|
187
|
+
(row: FsListAbstractRow): string;
|
|
188
|
+
}
|
|
189
|
+
export interface FsListRowActionFile {
|
|
190
|
+
select: FsListRowActionFileFn;
|
|
191
|
+
error?: (error: unknown) => void;
|
|
192
|
+
multiple?: boolean;
|
|
193
|
+
accept?: string;
|
|
194
|
+
minWidth?: number;
|
|
195
|
+
minHeight?: number;
|
|
196
|
+
maxWidth?: number;
|
|
197
|
+
maxHeight?: number;
|
|
198
|
+
imageQuality?: number;
|
|
199
|
+
}
|
|
200
|
+
export interface FsListRowActionLink {
|
|
201
|
+
link: any[] | string;
|
|
202
|
+
queryParams?: Record<string, any>;
|
|
203
|
+
target?: string;
|
|
204
|
+
}
|
|
205
|
+
export interface FsListAbstractRow {
|
|
206
|
+
[name: string]: any;
|
|
207
|
+
}
|
|
208
|
+
export interface FsListTrackByFn {
|
|
209
|
+
(row: FsListAbstractRow, index?: number): boolean;
|
|
210
|
+
}
|
|
211
|
+
export interface FsListTrackByTargetRowFn {
|
|
212
|
+
(listRow: FsListAbstractRow, targetRow?: FsListAbstractRow): boolean;
|
|
213
|
+
}
|
|
214
|
+
export interface FsListColumnLoadFn {
|
|
215
|
+
(): Observable<FsListColumn[]>;
|
|
216
|
+
}
|
|
217
|
+
export interface FsListColumnChangeFn {
|
|
218
|
+
(listColumns: FsListColumn[]): void;
|
|
219
|
+
}
|
|
220
|
+
export interface FsListColumnTitleFn {
|
|
221
|
+
(name: string, defaultTitle: string): string;
|
|
222
|
+
}
|
|
223
|
+
export interface FsListColumnTooltipFn {
|
|
224
|
+
(name: string, show: boolean, disabled: boolean): string;
|
|
225
|
+
}
|
|
226
|
+
export interface FsListColumnDisabledFn {
|
|
227
|
+
(name: string): boolean;
|
|
228
|
+
}
|
|
229
|
+
export interface FsListColumnSelectedFn {
|
|
230
|
+
(name: string, show: boolean): boolean;
|
|
231
|
+
}
|
|
232
|
+
export interface FsListColumnConfig {
|
|
233
|
+
load?: FsListColumnLoadFn;
|
|
234
|
+
change?: FsListColumnChangeFn;
|
|
235
|
+
title?: FsListColumnTitleFn;
|
|
236
|
+
tooltip?: FsListColumnTooltipFn;
|
|
237
|
+
disabled?: FsListColumnDisabledFn;
|
|
238
|
+
selected?: FsListColumnSelectedFn;
|
|
239
|
+
}
|
|
240
|
+
export interface FsListColumn {
|
|
241
|
+
name: string;
|
|
242
|
+
show: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface FsListActionSelected extends FsSelectionActionSelected {
|
|
245
|
+
selected: any[];
|
|
246
|
+
}
|
|
247
|
+
export interface FsListEmptyStateConfig {
|
|
248
|
+
validate: FsListStateValidationFn;
|
|
249
|
+
}
|
|
250
|
+
export interface FsListFetchOptions {
|
|
251
|
+
state: FsListState;
|
|
252
|
+
}
|
|
253
|
+
export declare type FsListPersitance = FsFilterPersistance;
|
|
254
|
+
export declare type FsListStateValidationFn = (filters: any, rows: FsListAbstractRow[]) => boolean;
|
|
255
|
+
export declare type FsListFetchFn = (query: Record<string, any>, options: FsListFetchOptions) => Observable<{
|
|
256
|
+
data: unknown[];
|
|
257
|
+
paging?: FsPaging;
|
|
258
|
+
}>;
|
|
259
|
+
export declare type FsListAfterFetchFn = (query: Record<string, any>, data: unknown[]) => void;
|
|
260
|
+
export declare type FsListBeforeFetchFn = (query: any) => Observable<Record<string, any>>;
|
|
261
|
+
export declare type FsListAfterContentInitFn = (query: Record<string, any>, data: unknown[]) => void;
|
|
262
|
+
export interface FsListRowClassOptions {
|
|
263
|
+
index: number;
|
|
264
|
+
groupIndex?: number;
|
|
265
|
+
type?: RowType;
|
|
266
|
+
}
|
|
267
|
+
export declare type FsListAfterInitFn = (listComponent: any) => void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { PageChangeType } from '../enums/page-change-type.enum';
|
|
2
|
-
export interface QueryPageStrategy {
|
|
3
|
-
page?: number;
|
|
4
|
-
limit?: number;
|
|
5
|
-
}
|
|
6
|
-
export interface QueryOffsetStrategy {
|
|
7
|
-
offset?: number;
|
|
8
|
-
limit?: number;
|
|
9
|
-
}
|
|
10
|
-
export interface PageChange {
|
|
11
|
-
type: PageChangeType;
|
|
12
|
-
payload: any;
|
|
13
|
-
}
|
|
1
|
+
import { PageChangeType } from '../enums/page-change-type.enum';
|
|
2
|
+
export interface QueryPageStrategy {
|
|
3
|
+
page?: number;
|
|
4
|
+
limit?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface QueryOffsetStrategy {
|
|
7
|
+
offset?: number;
|
|
8
|
+
limit?: number;
|
|
9
|
+
}
|
|
10
|
+
export interface PageChange {
|
|
11
|
+
type: PageChangeType;
|
|
12
|
+
payload: any;
|
|
13
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BehaviorSubject } from 'rxjs';
|
|
2
|
-
export declare class ColumnAsyncAttribute<T> extends BehaviorSubject<T> {
|
|
3
|
-
constructor(value: T);
|
|
4
|
-
next(value: T): void;
|
|
5
|
-
}
|
|
1
|
+
import { BehaviorSubject } from 'rxjs';
|
|
2
|
+
export declare class ColumnAsyncAttribute<T> extends BehaviorSubject<T> {
|
|
3
|
+
constructor(value: T);
|
|
4
|
+
next(value: T): void;
|
|
5
|
+
}
|