@firestitch/list 12.18.1 → 12.18.3

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.
Files changed (155) hide show
  1. package/app/classes/actions-controller.d.ts +20 -20
  2. package/app/classes/columns-controller.d.ts +71 -71
  3. package/app/classes/data-controller.d.ts +91 -91
  4. package/app/classes/external-params-controller.d.ts +31 -31
  5. package/app/classes/index.d.ts +2 -2
  6. package/app/classes/list-controller.d.ts +186 -179
  7. package/app/classes/pagination-controller.d.ts +189 -189
  8. package/app/classes/persistance-controller.d.ts +10 -10
  9. package/app/classes/reorder-controller.d.ts +68 -68
  10. package/app/classes/selection-controller.d.ts +155 -155
  11. package/app/classes/sorting-controller.d.ts +64 -64
  12. package/app/components/body/body.component.d.ts +28 -28
  13. package/app/components/body/row/actions/actions.component.d.ts +36 -36
  14. package/app/components/body/row/cell/cell.component.d.ts +22 -23
  15. package/app/components/body/row/inline-action/inline-action.component.d.ts +16 -16
  16. package/app/components/body/row/menu-action/menu-action.component.d.ts +20 -20
  17. package/app/components/body/row/row.component.d.ts +82 -82
  18. package/app/components/customize-cols/customize-cols.component.d.ts +17 -17
  19. package/app/components/footer/footer-row/footer-cell/footer-cell.component.d.ts +7 -7
  20. package/app/components/footer/footer-row/footer-row.component.d.ts +14 -14
  21. package/app/components/footer/footer.component.d.ts +15 -15
  22. package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
  23. package/app/components/head/head.component.d.ts +49 -49
  24. package/app/components/list/list.component.d.ts +124 -122
  25. package/app/components/loader/loader.component.d.ts +14 -14
  26. package/app/components/manage-saved-filters/manage-saved-filters.component.d.ts +13 -13
  27. package/app/components/pagination/pagination.component.d.ts +14 -14
  28. package/app/components/saved-filters/saved-filters.component.d.ts +15 -15
  29. package/app/components/status/status.component.d.ts +21 -21
  30. package/app/directives/cell/cell.directive.d.ts +8 -8
  31. package/app/directives/column/column.directive.d.ts +33 -33
  32. package/app/directives/content/content.directive.d.ts +5 -5
  33. package/app/directives/content-init/content-init.directive.d.ts +9 -9
  34. package/app/directives/draggable-list/draggable-list.directive.d.ts +95 -95
  35. package/app/directives/draggable-row/draggable-row.directive.d.ts +23 -23
  36. package/app/directives/empty-state/empty-state.directive.d.ts +5 -5
  37. package/app/directives/footer/footer.directive.d.ts +8 -8
  38. package/app/directives/group-expand-trigger/group-expand-trigger.directive.d.ts +10 -10
  39. package/app/directives/group-footer/group-footer.directive.d.ts +6 -6
  40. package/app/directives/group-header/group-header.directive.d.ts +6 -6
  41. package/app/directives/header/header.directive.d.ts +8 -8
  42. package/app/directives/heading/heading.directive.d.ts +5 -5
  43. package/app/directives/heading-container/heading-container.directive.d.ts +5 -5
  44. package/app/directives/index.d.ts +3 -3
  45. package/app/directives/subheading/subheading.directive.d.ts +5 -5
  46. package/app/enums/button-type.enum.d.ts +7 -7
  47. package/app/enums/page-change-type.enum.d.ts +4 -4
  48. package/app/enums/pagination-strategy.enum.d.ts +5 -5
  49. package/app/enums/row-type.enum.d.ts +6 -6
  50. package/app/enums/state.enum.d.ts +9 -9
  51. package/app/fs-list.module.d.ts +60 -60
  52. package/app/fs-list.providers.d.ts +3 -3
  53. package/app/interfaces/cellconfig.interface.d.ts +5 -5
  54. package/app/interfaces/column-config.interface.d.ts +2 -2
  55. package/app/interfaces/draggable-list.interface.d.ts +7 -7
  56. package/app/interfaces/external-params.interface.d.ts +13 -13
  57. package/app/interfaces/index.d.ts +3 -3
  58. package/app/interfaces/listconfig.interface.d.ts +246 -267
  59. package/app/interfaces/pagination.interface.d.ts +13 -13
  60. package/app/models/column-async-attribute.d.ts +5 -5
  61. package/app/models/column-attributes.d.ts +39 -39
  62. package/app/models/column.model.d.ts +60 -59
  63. package/app/models/row/base-row.d.ts +13 -13
  64. package/app/models/row/child-row.d.ts +12 -12
  65. package/app/models/row/group-footer-row.d.ts +10 -10
  66. package/app/models/row/group-row.d.ts +16 -16
  67. package/app/models/row/simple-row.d.ts +5 -5
  68. package/app/models/row-action.model.d.ts +29 -29
  69. package/app/models/row.d.ts +30 -30
  70. package/app/models/styleConfig.model.d.ts +31 -31
  71. package/app/pipes/action-label.d.ts +8 -8
  72. package/app/pipes/index.d.ts +1 -1
  73. package/app/services/group-expand-notifier.service.d.ts +11 -11
  74. package/bundles/firestitch-list.umd.js +6990 -6982
  75. package/bundles/firestitch-list.umd.js.map +1 -1
  76. package/esm2015/app/classes/actions-controller.js +55 -55
  77. package/esm2015/app/classes/columns-controller.js +205 -205
  78. package/esm2015/app/classes/data-controller.js +364 -364
  79. package/esm2015/app/classes/external-params-controller.js +153 -153
  80. package/esm2015/app/classes/index.js +3 -3
  81. package/esm2015/app/classes/list-controller.js +744 -739
  82. package/esm2015/app/classes/pagination-controller.js +460 -460
  83. package/esm2015/app/classes/persistance-controller.js +19 -19
  84. package/esm2015/app/classes/reorder-controller.js +182 -182
  85. package/esm2015/app/classes/selection-controller.js +467 -467
  86. package/esm2015/app/classes/sorting-controller.js +180 -180
  87. package/esm2015/app/components/body/body.component.js +68 -68
  88. package/esm2015/app/components/body/row/actions/actions.component.js +98 -98
  89. package/esm2015/app/components/body/row/cell/cell.component.js +113 -113
  90. package/esm2015/app/components/body/row/inline-action/inline-action.component.js +39 -39
  91. package/esm2015/app/components/body/row/menu-action/menu-action.component.js +49 -49
  92. package/esm2015/app/components/body/row/row.component.js +304 -304
  93. package/esm2015/app/components/customize-cols/customize-cols.component.js +72 -72
  94. package/esm2015/app/components/footer/footer-row/footer-cell/footer-cell.component.js +20 -20
  95. package/esm2015/app/components/footer/footer-row/footer-row.component.js +33 -32
  96. package/esm2015/app/components/footer/footer.component.js +35 -35
  97. package/esm2015/app/components/head/head-cell/head-cell.component.js +34 -34
  98. package/esm2015/app/components/head/head.component.js +107 -107
  99. package/esm2015/app/components/list/list.component.js +388 -386
  100. package/esm2015/app/components/loader/loader.component.js +47 -47
  101. package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +78 -78
  102. package/esm2015/app/components/pagination/pagination.component.js +44 -44
  103. package/esm2015/app/components/saved-filters/saved-filters.component.js +33 -33
  104. package/esm2015/app/components/status/status.component.js +72 -72
  105. package/esm2015/app/directives/cell/cell.directive.js +18 -18
  106. package/esm2015/app/directives/column/column.directive.js +111 -111
  107. package/esm2015/app/directives/content/content.directive.js +12 -12
  108. package/esm2015/app/directives/content-init/content-init.directive.js +21 -21
  109. package/esm2015/app/directives/draggable-list/draggable-list.directive.js +329 -329
  110. package/esm2015/app/directives/draggable-row/draggable-row.directive.js +78 -78
  111. package/esm2015/app/directives/empty-state/empty-state.directive.js +13 -13
  112. package/esm2015/app/directives/footer/footer.directive.js +18 -18
  113. package/esm2015/app/directives/group-expand-trigger/group-expand-trigger.directive.js +26 -26
  114. package/esm2015/app/directives/group-footer/group-footer.directive.js +13 -13
  115. package/esm2015/app/directives/group-header/group-header.directive.js +13 -13
  116. package/esm2015/app/directives/header/header.directive.js +18 -18
  117. package/esm2015/app/directives/heading/heading.directive.js +13 -13
  118. package/esm2015/app/directives/heading-container/heading-container.directive.js +13 -13
  119. package/esm2015/app/directives/index.js +4 -4
  120. package/esm2015/app/directives/subheading/subheading.directive.js +13 -13
  121. package/esm2015/app/enums/button-type.enum.js +9 -9
  122. package/esm2015/app/enums/page-change-type.enum.js +6 -6
  123. package/esm2015/app/enums/pagination-strategy.enum.js +7 -7
  124. package/esm2015/app/enums/row-type.enum.js +7 -7
  125. package/esm2015/app/enums/state.enum.js +11 -11
  126. package/esm2015/app/fs-list.module.js +246 -245
  127. package/esm2015/app/fs-list.providers.js +4 -4
  128. package/esm2015/app/interfaces/cellconfig.interface.js +2 -2
  129. package/esm2015/app/interfaces/column-config.interface.js +1 -1
  130. package/esm2015/app/interfaces/draggable-list.interface.js +2 -2
  131. package/esm2015/app/interfaces/external-params.interface.js +2 -2
  132. package/esm2015/app/interfaces/index.js +4 -4
  133. package/esm2015/app/interfaces/listconfig.interface.js +2 -2
  134. package/esm2015/app/interfaces/pagination.interface.js +2 -2
  135. package/esm2015/app/models/column-async-attribute.js +13 -13
  136. package/esm2015/app/models/column-attributes.js +131 -131
  137. package/esm2015/app/models/column.model.js +163 -167
  138. package/esm2015/app/models/row/base-row.js +23 -23
  139. package/esm2015/app/models/row/child-row.js +28 -28
  140. package/esm2015/app/models/row/group-footer-row.js +20 -20
  141. package/esm2015/app/models/row/group-row.js +44 -44
  142. package/esm2015/app/models/row/simple-row.js +10 -10
  143. package/esm2015/app/models/row-action.model.js +94 -94
  144. package/esm2015/app/models/row.js +80 -80
  145. package/esm2015/app/models/styleConfig.model.js +75 -75
  146. package/esm2015/app/pipes/action-label.js +16 -16
  147. package/esm2015/app/pipes/index.js +1 -1
  148. package/esm2015/app/services/group-expand-notifier.service.js +26 -26
  149. package/esm2015/firestitch-list.js +4 -4
  150. package/esm2015/public_api.js +45 -45
  151. package/fesm2015/firestitch-list.js +5775 -5767
  152. package/fesm2015/firestitch-list.js.map +1 -1
  153. package/firestitch-list.d.ts +5 -5
  154. package/package.json +1 -1
  155. 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,246 @@
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?: any;
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
+ reload?: boolean;
62
+ style?: 'line' | 'card';
63
+ }
64
+ export interface FsListGroupConfig {
65
+ enabled?: boolean;
66
+ initialExpand?: boolean;
67
+ groupBy?: (row: any) => any;
68
+ compareBy?: (row: any) => any;
69
+ footer?: (row: {
70
+ [key: string]: any;
71
+ }, group?: {
72
+ [key: string]: any;
73
+ children: {
74
+ [key: string]: any;
75
+ }[];
76
+ }) => boolean;
77
+ actions?: (FsListRowActionGroup | FsListRowAction)[];
78
+ }
79
+ export interface FsListLoadMoreConfig {
80
+ label?: string;
81
+ }
82
+ export interface FsListReorderConfig {
83
+ start?: () => void;
84
+ moved?: FsListReorderMovedCallback;
85
+ done?: FsListReorderDoneCallback;
86
+ moveDrop?: FsListReorderMoveInGroupCallback;
87
+ position?: ReorderPosition;
88
+ disabled?: boolean;
89
+ toggle?: boolean;
90
+ label?: string;
91
+ menu?: boolean;
92
+ multiple?: boolean;
93
+ status?: boolean;
94
+ }
95
+ export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
96
+ export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
97
+ export interface FsListReorderData {
98
+ type: RowType;
99
+ data: any;
100
+ parent: FsListReorderData;
101
+ }
102
+ export declare type FsListReorderMoveInGroupCallback = (data: {
103
+ row1: any;
104
+ row2: any;
105
+ group1: any;
106
+ group2: any;
107
+ }) => boolean;
108
+ export interface FsListHeaderConfig {
109
+ className?: string;
110
+ align?: string;
111
+ }
112
+ export interface FsListCellConfig {
113
+ className?: string;
114
+ align?: string;
115
+ }
116
+ export interface FsListFooterConfig {
117
+ className?: string;
118
+ align?: string;
119
+ }
120
+ export interface FsListSortsConfig {
121
+ name: string;
122
+ value: string;
123
+ direction?: 'asc' | 'desc';
124
+ }
125
+ export interface FsListSortConfig {
126
+ value: string;
127
+ direction?: 'asc' | 'desc';
128
+ }
129
+ export interface FsListScrollableConfig {
130
+ name: string;
131
+ activationDown?: number;
132
+ loaderDiametr?: number;
133
+ status?: boolean;
134
+ }
135
+ export interface FsListRestoreConfig {
136
+ query?: any;
137
+ filter?: boolean | string;
138
+ filterLabel?: string;
139
+ menuLabel?: string;
140
+ click?: (row: FsListAbstractRow, event?: any) => void | Observable<any>;
141
+ reload?: boolean;
142
+ }
143
+ export interface FsListNoResultsConfig {
144
+ message?: string;
145
+ }
146
+ export interface FsListSelectionConfig {
147
+ actions?: FsSelectionDialogConfigAction[];
148
+ actionSelected?: (action: FsListActionSelected) => Observable<boolean>;
149
+ allSelected?: () => void;
150
+ cancelled?: () => void;
151
+ disabled?: boolean;
152
+ selectAll?: boolean;
153
+ selectionChanged?: (data: any, selectedAll: boolean, selectionRef: SelectionRef) => FsSelectionDialogConfigAction[] | Observable<FsSelectionDialogConfigAction[] | void> | void;
154
+ }
155
+ export interface FsListFetchSubscription {
156
+ loadOffset?: boolean;
157
+ }
158
+ export declare type FsListAction = {
159
+ customize?: boolean;
160
+ } & FsFilterAction;
161
+ export interface FsListRowActionGroup {
162
+ label?: string;
163
+ rowActions: FsListRowAction[];
164
+ }
165
+ export interface FsListRowAction {
166
+ label?: string | FsListRowActionLabelFn;
167
+ type?: ActionType;
168
+ className?: string;
169
+ icon?: string;
170
+ menu?: boolean;
171
+ click?: (row: any, event: any, index: any) => void;
172
+ link?: FsListRowActionLinkFn;
173
+ file?: FsListRowActionFile;
174
+ show?: (row: any, index: number) => boolean;
175
+ remove?: {
176
+ title?: string;
177
+ template?: string;
178
+ } | boolean;
179
+ restore?: boolean;
180
+ }
181
+ export declare type FsListRowActionFileFn = (selection: FsFile | FsFile[], row: FsListAbstractRow, index: number) => void;
182
+ export declare type FsListRowActionLinkFn = (row: FsListAbstractRow) => FsListRowActionLink;
183
+ export declare type FsListRowActionLabelFn = (row: FsListAbstractRow) => string;
184
+ export interface FsListRowActionFile {
185
+ select: FsListRowActionFileFn;
186
+ error?: (error: unknown) => void;
187
+ multiple?: boolean;
188
+ accept?: string;
189
+ minWidth?: number;
190
+ minHeight?: number;
191
+ maxWidth?: number;
192
+ maxHeight?: number;
193
+ imageQuality?: number;
194
+ }
195
+ export interface FsListRowActionLink {
196
+ link: any[] | string;
197
+ queryParams?: Record<string, any>;
198
+ target?: string;
199
+ }
200
+ export interface FsListAbstractRow {
201
+ [name: string]: any;
202
+ }
203
+ export declare type FsListTrackByFn = (row: FsListAbstractRow, index?: number) => boolean;
204
+ export declare type FsListTrackByTargetRowFn = (listRow: FsListAbstractRow, targetRow?: FsListAbstractRow) => boolean;
205
+ export declare type FsListColumnLoadFn = () => Observable<FsListColumn[]>;
206
+ export declare type FsListColumnChangeFn = (listColumns: FsListColumn[]) => void;
207
+ export declare type FsListColumnTitleFn = (name: string, defaultTitle: string) => string;
208
+ export declare type FsListColumnTooltipFn = (name: string, show: boolean, disabled: boolean) => string;
209
+ export declare type FsListColumnDisabledFn = (name: string) => boolean;
210
+ export declare type FsListColumnSelectedFn = (name: string, show: boolean) => boolean;
211
+ export interface FsListColumnConfig {
212
+ load?: FsListColumnLoadFn;
213
+ change?: FsListColumnChangeFn;
214
+ title?: FsListColumnTitleFn;
215
+ tooltip?: FsListColumnTooltipFn;
216
+ disabled?: FsListColumnDisabledFn;
217
+ selected?: FsListColumnSelectedFn;
218
+ }
219
+ export interface FsListColumn {
220
+ name: string;
221
+ show: boolean;
222
+ }
223
+ export interface FsListActionSelected extends FsSelectionActionSelected {
224
+ selected: any[];
225
+ }
226
+ export interface FsListEmptyStateConfig {
227
+ validate: FsListStateValidationFn;
228
+ }
229
+ export interface FsListFetchOptions {
230
+ state: FsListState;
231
+ }
232
+ export declare type FsListPersitance = FsFilterPersistance;
233
+ export declare type FsListStateValidationFn = (filters: any, rows: FsListAbstractRow[]) => boolean;
234
+ export declare type FsListFetchFn = (query: Record<string, any>, options: FsListFetchOptions) => Observable<{
235
+ data: unknown[];
236
+ paging?: FsPaging;
237
+ }>;
238
+ export declare type FsListAfterFetchFn = (query: Record<string, any>, data: unknown[]) => void;
239
+ export declare type FsListBeforeFetchFn = (query: any) => Observable<Record<string, any>>;
240
+ export declare type FsListAfterContentInitFn = (query: Record<string, any>, data: unknown[]) => void;
241
+ export interface FsListRowClassOptions {
242
+ index: number;
243
+ groupIndex?: number;
244
+ type?: RowType;
245
+ }
246
+ 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
+ }