@firestitch/list 12.6.1 → 12.7.1

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