@firestitch/list 12.14.3 → 12.14.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +179 -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 +146 -146
  11. package/app/classes/sorting-controller.d.ts +64 -64
  12. package/app/components/body/body.component.d.ts +29 -29
  13. package/app/components/body/row/actions/actions.component.d.ts +34 -34
  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 +14 -14
  17. package/app/components/body/row/row.component.d.ts +80 -80
  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 +16 -16
  22. package/app/components/head/head-cell/head-cell.component.d.ts +14 -14
  23. package/app/components/head/head.component.d.ts +47 -47
  24. package/app/components/list/list.component.d.ts +122 -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 +90 -90
  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 +260 -260
  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 +59 -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 +6862 -6862
  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 +348 -348
  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 +738 -738
  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 +458 -458
  86. package/esm2015/app/classes/sorting-controller.js +180 -180
  87. package/esm2015/app/components/body/body.component.js +67 -67
  88. package/esm2015/app/components/body/row/actions/actions.component.js +95 -95
  89. package/esm2015/app/components/body/row/cell/cell.component.js +106 -107
  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 +35 -35
  92. package/esm2015/app/components/body/row/row.component.js +296 -296
  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 +31 -31
  96. package/esm2015/app/components/footer/footer.component.js +34 -34
  97. package/esm2015/app/components/head/head-cell/head-cell.component.js +33 -33
  98. package/esm2015/app/components/head/head.component.js +104 -104
  99. package/esm2015/app/components/list/list.component.js +385 -385
  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 +323 -323
  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 +244 -244
  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 +1 -1
  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 +130 -130
  137. package/esm2015/app/models/column.model.js +166 -166
  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 +5643 -5643
  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,260 +1,260 @@
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?: (group?: any) => boolean;
69
- actions?: (FsListRowActionGroup | FsListRowAction)[];
70
- }
71
- export interface FsListLoadMoreConfig {
72
- label?: string;
73
- }
74
- export interface FsListReorderConfig {
75
- start?: () => void;
76
- moved?: FsListReorderMovedCallback;
77
- done?: FsListReorderDoneCallback;
78
- moveDrop?: FsListReorderMoveInGroupCallback;
79
- position?: ReorderPosition;
80
- disabled?: boolean;
81
- toggle?: boolean;
82
- label?: string;
83
- menu?: boolean;
84
- multiple?: boolean;
85
- status?: boolean;
86
- }
87
- export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
88
- export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
89
- export interface FsListReorderData {
90
- type: RowType;
91
- data: any;
92
- parent: FsListReorderData;
93
- }
94
- export declare type FsListReorderMoveInGroupCallback = (data: {
95
- row1: any;
96
- row2: any;
97
- group1: any;
98
- group2: any;
99
- }) => boolean;
100
- export interface FsListHeaderConfig {
101
- className?: string;
102
- align?: string;
103
- }
104
- export interface FsListCellConfig {
105
- className?: string;
106
- align?: string;
107
- }
108
- export interface FsListFooterConfig {
109
- className?: string;
110
- align?: string;
111
- }
112
- export interface FsListSortsConfig {
113
- name: string;
114
- value: string;
115
- direction?: 'asc' | 'desc';
116
- }
117
- export interface FsListSortConfig {
118
- value: string;
119
- direction?: 'asc' | 'desc';
120
- }
121
- export interface FsListScrollableConfig {
122
- name: string;
123
- activationDown?: number;
124
- loaderDiametr?: number;
125
- status?: boolean;
126
- }
127
- export interface FsListRestoreConfig {
128
- query?: any;
129
- filter?: boolean | string;
130
- filterLabel?: string;
131
- menuLabel?: string;
132
- click?: (row: FsListAbstractRow, event?: any) => void | Observable<any>;
133
- reload?: boolean;
134
- }
135
- export interface FsListNoResultsConfig {
136
- message?: string;
137
- }
138
- export interface FsListSelectionConfig {
139
- actions?: FsSelectionDialogConfigAction[];
140
- actionSelected?: (action: FsListActionSelected) => Observable<boolean>;
141
- allSelected?: () => void;
142
- cancelled?: () => void;
143
- disabled?: boolean;
144
- selectAll?: boolean;
145
- selectionChanged?: (data: any, selectedAll: boolean, selectionRef: SelectionRef) => FsSelectionDialogConfigAction[] | Observable<FsSelectionDialogConfigAction[] | void> | void;
146
- }
147
- export interface FsListFetchSubscription {
148
- loadOffset?: boolean;
149
- }
150
- export declare type FsListAction = {
151
- customize?: boolean;
152
- } & FsFilterAction;
153
- export interface FsListRowActionGroup {
154
- label?: string;
155
- rowActions: FsListRowAction[];
156
- }
157
- export interface FsListRowAction {
158
- label?: string | FsListRowActionLabelFn;
159
- type?: ActionType;
160
- className?: string;
161
- icon?: string;
162
- menu?: boolean;
163
- click?: (row: any, event: any, index: any) => void;
164
- link?: FsListRowActionLinkFn;
165
- file?: FsListRowActionFile;
166
- show?: (row: any, index: number) => boolean;
167
- remove?: {
168
- title?: string;
169
- template?: string;
170
- } | boolean;
171
- restore?: boolean;
172
- }
173
- export interface FsListRowActionFileFn {
174
- (selection: FsFile | FsFile[], row: FsListAbstractRow, index: number): void;
175
- }
176
- export interface FsListRowActionLinkFn {
177
- (row: FsListAbstractRow): FsListRowActionLink;
178
- }
179
- export interface FsListRowActionLabelFn {
180
- (row: FsListAbstractRow): string;
181
- }
182
- export interface FsListRowActionFile {
183
- select: FsListRowActionFileFn;
184
- error?: (error: unknown) => void;
185
- multiple?: boolean;
186
- accept?: string;
187
- minWidth?: number;
188
- minHeight?: number;
189
- maxWidth?: number;
190
- maxHeight?: number;
191
- imageQuality?: number;
192
- }
193
- export interface FsListRowActionLink {
194
- link: any[] | string;
195
- queryParams?: Record<string, any>;
196
- target?: string;
197
- }
198
- export interface FsListAbstractRow {
199
- [name: string]: any;
200
- }
201
- export interface FsListTrackByFn {
202
- (row: FsListAbstractRow, index?: number): boolean;
203
- }
204
- export interface FsListTrackByTargetRowFn {
205
- (listRow: FsListAbstractRow, targetRow?: FsListAbstractRow): boolean;
206
- }
207
- export interface FsListColumnLoadFn {
208
- (): Observable<FsListColumn[]>;
209
- }
210
- export interface FsListColumnChangeFn {
211
- (listColumns: FsListColumn[]): void;
212
- }
213
- export interface FsListColumnTitleFn {
214
- (name: string, defaultTitle: string): string;
215
- }
216
- export interface FsListColumnTooltipFn {
217
- (name: string, show: boolean, disabled: boolean): string;
218
- }
219
- export interface FsListColumnDisabledFn {
220
- (name: string): boolean;
221
- }
222
- export interface FsListColumnSelectedFn {
223
- (name: string, show: boolean): boolean;
224
- }
225
- export interface FsListColumnConfig {
226
- load?: FsListColumnLoadFn;
227
- change?: FsListColumnChangeFn;
228
- title?: FsListColumnTitleFn;
229
- tooltip?: FsListColumnTooltipFn;
230
- disabled?: FsListColumnDisabledFn;
231
- selected?: FsListColumnSelectedFn;
232
- }
233
- export interface FsListColumn {
234
- name: string;
235
- show: boolean;
236
- }
237
- export interface FsListActionSelected extends FsSelectionActionSelected {
238
- selected: any[];
239
- }
240
- export interface FsListEmptyStateConfig {
241
- validate: FsListStateValidationFn;
242
- }
243
- export interface FsListFetchOptions {
244
- state: FsListState;
245
- }
246
- export declare type FsListPersitance = FsFilterPersistance;
247
- export declare type FsListStateValidationFn = (filters: any, rows: FsListAbstractRow[]) => boolean;
248
- export declare type FsListFetchFn = (query: Record<string, any>, options: FsListFetchOptions) => Observable<{
249
- data: unknown[];
250
- paging?: FsPaging;
251
- }>;
252
- export declare type FsListAfterFetchFn = (query: Record<string, any>, data: unknown[]) => void;
253
- export declare type FsListBeforeFetchFn = (query: any) => Observable<Record<string, any>>;
254
- export declare type FsListAfterContentInitFn = (query: Record<string, any>, data: unknown[]) => void;
255
- export interface FsListRowClassOptions {
256
- index: number;
257
- groupIndex?: number;
258
- type?: RowType;
259
- }
260
- 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?: (group?: any) => boolean;
69
+ actions?: (FsListRowActionGroup | FsListRowAction)[];
70
+ }
71
+ export interface FsListLoadMoreConfig {
72
+ label?: string;
73
+ }
74
+ export interface FsListReorderConfig {
75
+ start?: () => void;
76
+ moved?: FsListReorderMovedCallback;
77
+ done?: FsListReorderDoneCallback;
78
+ moveDrop?: FsListReorderMoveInGroupCallback;
79
+ position?: ReorderPosition;
80
+ disabled?: boolean;
81
+ toggle?: boolean;
82
+ label?: string;
83
+ menu?: boolean;
84
+ multiple?: boolean;
85
+ status?: boolean;
86
+ }
87
+ export declare type FsListReorderMovedCallback = (rows: FsListReorderData[]) => void;
88
+ export declare type FsListReorderDoneCallback = (rows: FsListReorderData[]) => void | Observable<any>;
89
+ export interface FsListReorderData {
90
+ type: RowType;
91
+ data: any;
92
+ parent: FsListReorderData;
93
+ }
94
+ export declare type FsListReorderMoveInGroupCallback = (data: {
95
+ row1: any;
96
+ row2: any;
97
+ group1: any;
98
+ group2: any;
99
+ }) => boolean;
100
+ export interface FsListHeaderConfig {
101
+ className?: string;
102
+ align?: string;
103
+ }
104
+ export interface FsListCellConfig {
105
+ className?: string;
106
+ align?: string;
107
+ }
108
+ export interface FsListFooterConfig {
109
+ className?: string;
110
+ align?: string;
111
+ }
112
+ export interface FsListSortsConfig {
113
+ name: string;
114
+ value: string;
115
+ direction?: 'asc' | 'desc';
116
+ }
117
+ export interface FsListSortConfig {
118
+ value: string;
119
+ direction?: 'asc' | 'desc';
120
+ }
121
+ export interface FsListScrollableConfig {
122
+ name: string;
123
+ activationDown?: number;
124
+ loaderDiametr?: number;
125
+ status?: boolean;
126
+ }
127
+ export interface FsListRestoreConfig {
128
+ query?: any;
129
+ filter?: boolean | string;
130
+ filterLabel?: string;
131
+ menuLabel?: string;
132
+ click?: (row: FsListAbstractRow, event?: any) => void | Observable<any>;
133
+ reload?: boolean;
134
+ }
135
+ export interface FsListNoResultsConfig {
136
+ message?: string;
137
+ }
138
+ export interface FsListSelectionConfig {
139
+ actions?: FsSelectionDialogConfigAction[];
140
+ actionSelected?: (action: FsListActionSelected) => Observable<boolean>;
141
+ allSelected?: () => void;
142
+ cancelled?: () => void;
143
+ disabled?: boolean;
144
+ selectAll?: boolean;
145
+ selectionChanged?: (data: any, selectedAll: boolean, selectionRef: SelectionRef) => FsSelectionDialogConfigAction[] | Observable<FsSelectionDialogConfigAction[] | void> | void;
146
+ }
147
+ export interface FsListFetchSubscription {
148
+ loadOffset?: boolean;
149
+ }
150
+ export declare type FsListAction = {
151
+ customize?: boolean;
152
+ } & FsFilterAction;
153
+ export interface FsListRowActionGroup {
154
+ label?: string;
155
+ rowActions: FsListRowAction[];
156
+ }
157
+ export interface FsListRowAction {
158
+ label?: string | FsListRowActionLabelFn;
159
+ type?: ActionType;
160
+ className?: string;
161
+ icon?: string;
162
+ menu?: boolean;
163
+ click?: (row: any, event: any, index: any) => void;
164
+ link?: FsListRowActionLinkFn;
165
+ file?: FsListRowActionFile;
166
+ show?: (row: any, index: number) => boolean;
167
+ remove?: {
168
+ title?: string;
169
+ template?: string;
170
+ } | boolean;
171
+ restore?: boolean;
172
+ }
173
+ export interface FsListRowActionFileFn {
174
+ (selection: FsFile | FsFile[], row: FsListAbstractRow, index: number): void;
175
+ }
176
+ export interface FsListRowActionLinkFn {
177
+ (row: FsListAbstractRow): FsListRowActionLink;
178
+ }
179
+ export interface FsListRowActionLabelFn {
180
+ (row: FsListAbstractRow): string;
181
+ }
182
+ export interface FsListRowActionFile {
183
+ select: FsListRowActionFileFn;
184
+ error?: (error: unknown) => void;
185
+ multiple?: boolean;
186
+ accept?: string;
187
+ minWidth?: number;
188
+ minHeight?: number;
189
+ maxWidth?: number;
190
+ maxHeight?: number;
191
+ imageQuality?: number;
192
+ }
193
+ export interface FsListRowActionLink {
194
+ link: any[] | string;
195
+ queryParams?: Record<string, any>;
196
+ target?: string;
197
+ }
198
+ export interface FsListAbstractRow {
199
+ [name: string]: any;
200
+ }
201
+ export interface FsListTrackByFn {
202
+ (row: FsListAbstractRow, index?: number): boolean;
203
+ }
204
+ export interface FsListTrackByTargetRowFn {
205
+ (listRow: FsListAbstractRow, targetRow?: FsListAbstractRow): boolean;
206
+ }
207
+ export interface FsListColumnLoadFn {
208
+ (): Observable<FsListColumn[]>;
209
+ }
210
+ export interface FsListColumnChangeFn {
211
+ (listColumns: FsListColumn[]): void;
212
+ }
213
+ export interface FsListColumnTitleFn {
214
+ (name: string, defaultTitle: string): string;
215
+ }
216
+ export interface FsListColumnTooltipFn {
217
+ (name: string, show: boolean, disabled: boolean): string;
218
+ }
219
+ export interface FsListColumnDisabledFn {
220
+ (name: string): boolean;
221
+ }
222
+ export interface FsListColumnSelectedFn {
223
+ (name: string, show: boolean): boolean;
224
+ }
225
+ export interface FsListColumnConfig {
226
+ load?: FsListColumnLoadFn;
227
+ change?: FsListColumnChangeFn;
228
+ title?: FsListColumnTitleFn;
229
+ tooltip?: FsListColumnTooltipFn;
230
+ disabled?: FsListColumnDisabledFn;
231
+ selected?: FsListColumnSelectedFn;
232
+ }
233
+ export interface FsListColumn {
234
+ name: string;
235
+ show: boolean;
236
+ }
237
+ export interface FsListActionSelected extends FsSelectionActionSelected {
238
+ selected: any[];
239
+ }
240
+ export interface FsListEmptyStateConfig {
241
+ validate: FsListStateValidationFn;
242
+ }
243
+ export interface FsListFetchOptions {
244
+ state: FsListState;
245
+ }
246
+ export declare type FsListPersitance = FsFilterPersistance;
247
+ export declare type FsListStateValidationFn = (filters: any, rows: FsListAbstractRow[]) => boolean;
248
+ export declare type FsListFetchFn = (query: Record<string, any>, options: FsListFetchOptions) => Observable<{
249
+ data: unknown[];
250
+ paging?: FsPaging;
251
+ }>;
252
+ export declare type FsListAfterFetchFn = (query: Record<string, any>, data: unknown[]) => void;
253
+ export declare type FsListBeforeFetchFn = (query: any) => Observable<Record<string, any>>;
254
+ export declare type FsListAfterContentInitFn = (query: Record<string, any>, data: unknown[]) => void;
255
+ export interface FsListRowClassOptions {
256
+ index: number;
257
+ groupIndex?: number;
258
+ type?: RowType;
259
+ }
260
+ 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
+ }
@@ -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
+ }