@firestitch/list 12.4.0 → 12.5.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 +114 -114
  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 -57
  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 +249 -250
  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 -15
  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 +6541 -6539
  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 +332 -334
  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 +172 -172
  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 -76
  82. package/esm2015/app/components/body/row/actions/actions.component.js +100 -101
  83. package/esm2015/app/components/body/row/cell/cell.component.js +104 -92
  84. package/esm2015/app/components/body/row/inline-action/inline-action.component.js +40 -41
  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 +254 -255
  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 -27
  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 -91
  93. package/esm2015/app/components/list/list.component.js +369 -370
  94. package/esm2015/app/components/loader/loader.component.js +47 -47
  95. package/esm2015/app/components/manage-saved-filters/manage-saved-filters.component.js +79 -79
  96. package/esm2015/app/components/pagination/pagination.component.js +44 -45
  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 +228 -232
  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 +21 -21
  131. package/esm2015/app/models/row/group-row.js +45 -41
  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 +81 -81
  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 +44 -44
  139. package/fesm2015/firestitch-list.js +5384 -5376
  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,189 +1,189 @@
1
- import { Observable } from 'rxjs';
2
- import { FsListLoadMoreConfig, FsPaging, PageChange, QueryOffsetStrategy, QueryPageStrategy } from '../interfaces';
3
- import { PaginationStrategy } from '../enums/pagination-strategy.enum';
4
- export declare class PaginationController {
5
- limit: number;
6
- records: number;
7
- manual: boolean;
8
- page: number;
9
- offset: number;
10
- displayed: number;
11
- private _pages$;
12
- private _strategy;
13
- private _removedRows;
14
- private _pageChanged$;
15
- private _pageReset$;
16
- private _onDestroy$;
17
- private _loadMoreEnabled;
18
- private _infinityScrollEnabled;
19
- private _loadMoreText;
20
- private _limits;
21
- constructor();
22
- set pages(value: number);
23
- get pages(): number;
24
- get pages$(): Observable<number>;
25
- /**
26
- * Fire if page was changed
27
- */
28
- get pageChanged$(): Observable<PageChange>;
29
- get pageReset$(): Observable<void>;
30
- /**
31
- * Get enabled
32
- */
33
- get enabled(): boolean;
34
- /**
35
- * Get Limits
36
- */
37
- get limits(): number[];
38
- /**
39
- * Set limits, update pages array and set new limit per page
40
- * @param value
41
- */
42
- set limits(value: number[]);
43
- /**
44
- * Get query for request
45
- */
46
- get query(): QueryPageStrategy | QueryOffsetStrategy;
47
- get loadMoreQuery(): QueryPageStrategy | QueryOffsetStrategy;
48
- /**
49
- * Query for Page Strategy
50
- */
51
- get queryPageStrategy(): QueryPageStrategy;
52
- /**
53
- * Query for Offset Strategy
54
- */
55
- get queryOffsetStrategy(): QueryOffsetStrategy;
56
- /**
57
- * Get query for load only count of deleted rows
58
- */
59
- get loadDeletedOffsetQuery(): {
60
- offset: number;
61
- limit: number;
62
- };
63
- get initialized(): boolean;
64
- get strategy(): PaginationStrategy;
65
- set strategy(strategy: PaginationStrategy);
66
- /**
67
- * Check if pagination in Page Strategy Mode
68
- */
69
- get hasPageStrategy(): boolean;
70
- /**
71
- * Check if pagination in Offset Strategy Mode
72
- */
73
- get hasOffsetStrategy(): boolean;
74
- /**
75
- * Check if pagination in None Strategy Mode
76
- */
77
- get hasNoneStrategy(): boolean;
78
- /**
79
- * If prev page can be activated
80
- *
81
- */
82
- get hasPrevPage(): boolean;
83
- /**
84
- * If next page can be activated
85
- */
86
- get hasNextPage(): boolean;
87
- get loadMoreEnabled(): boolean;
88
- get loadMoreText(): string;
89
- get infinityScrollEnabled(): boolean;
90
- /**
91
- * SP-T1974
92
- * Showing 26-50 of 333 results sorted by Name, Ascending
93
- * Showing 0 results sorted by Name, Ascending
94
- */
95
- get statusLabel(): string;
96
- initWithConfig(config: FsPaging | false, loadMore: FsListLoadMoreConfig | boolean, infinityScrollEnabled?: boolean): void;
97
- /**
98
- * If pagination has prev page when Page Strategy
99
- */
100
- private get _hasPrevPagePageStrategy();
101
- /**
102
- * If pagination has prev page when Offset Strategy
103
- */
104
- private get _hasPrevPageOffsetStrategy();
105
- /**
106
- * If pagination has next page when Page Strategy
107
- */
108
- private get _hasNextPagePageStrategy();
109
- /**
110
- * If pagination has next page when Offset Strategy
111
- */
112
- private get _hasNextPageOffsetStrategy();
113
- /**
114
- * Update paging config and all related fields
115
- * @param config
116
- * @param displayedRecords
117
- * @param loadMoreOperation
118
- */
119
- updatePaging(config: any, displayedRecords?: number, loadMoreOperation?: boolean): void;
120
- /**
121
- * Update pages array with new pages count
122
- */
123
- setLoadMore(config: FsListLoadMoreConfig | boolean): void;
124
- /**
125
- * Update dispayed records counter
126
- */
127
- /**
128
- * Return count of records that could be shown on page
129
- */
130
- getVisibleRecords(): number;
131
- /**
132
- * Set new limit
133
- * @param limit
134
- */
135
- setLimit(limit: any): void;
136
- /**
137
- * If page is activate page
138
- * @param page
139
- */
140
- isActive(page: any): boolean;
141
- /**
142
- * Go to page
143
- * @param page
144
- */
145
- goToPage(page: any): void;
146
- /**
147
- * Reset paging like it was just initialized
148
- */
149
- resetPaging(): void;
150
- /**
151
- * Go to next page
152
- */
153
- goNext(): void;
154
- /**
155
- * Go to first page
156
- */
157
- goFirst(): void;
158
- /**
159
- * Go to prev page
160
- */
161
- goPrev(): void;
162
- /**
163
- * Go to last page
164
- */
165
- goLast(): void;
166
- /**
167
- * Update count of deleted rows. This count will be applied for offset calc
168
- * @param count
169
- */
170
- removeRows(count: number): void;
171
- updatePagination(): void;
172
- /**
173
- * Destroy
174
- */
175
- destroy(): void;
176
- /**
177
- * Update paging state
178
- * @param params
179
- */
180
- private _fromParams;
181
- /**
182
- * Calc and update offset
183
- */
184
- private updateOffset;
185
- /**
186
- * Calc and update total count of pages
187
- */
188
- private updateTotalPages;
189
- }
1
+ import { Observable } from 'rxjs';
2
+ import { FsListLoadMoreConfig, FsPaging, PageChange, QueryOffsetStrategy, QueryPageStrategy } from '../interfaces';
3
+ import { PaginationStrategy } from '../enums/pagination-strategy.enum';
4
+ export declare class PaginationController {
5
+ limit: number;
6
+ records: number;
7
+ manual: boolean;
8
+ page: number;
9
+ offset: number;
10
+ displayed: number;
11
+ private _pages$;
12
+ private _strategy;
13
+ private _removedRows;
14
+ private _pageChanged$;
15
+ private _pageReset$;
16
+ private _onDestroy$;
17
+ private _loadMoreEnabled;
18
+ private _infinityScrollEnabled;
19
+ private _loadMoreText;
20
+ private _limits;
21
+ constructor();
22
+ set pages(value: number);
23
+ get pages(): number;
24
+ get pages$(): Observable<number>;
25
+ /**
26
+ * Fire if page was changed
27
+ */
28
+ get pageChanged$(): Observable<PageChange>;
29
+ get pageReset$(): Observable<void>;
30
+ /**
31
+ * Get enabled
32
+ */
33
+ get enabled(): boolean;
34
+ /**
35
+ * Get Limits
36
+ */
37
+ get limits(): number[];
38
+ /**
39
+ * Set limits, update pages array and set new limit per page
40
+ * @param value
41
+ */
42
+ set limits(value: number[]);
43
+ /**
44
+ * Get query for request
45
+ */
46
+ get query(): QueryPageStrategy | QueryOffsetStrategy;
47
+ get loadMoreQuery(): QueryPageStrategy | QueryOffsetStrategy;
48
+ /**
49
+ * Query for Page Strategy
50
+ */
51
+ get queryPageStrategy(): QueryPageStrategy;
52
+ /**
53
+ * Query for Offset Strategy
54
+ */
55
+ get queryOffsetStrategy(): QueryOffsetStrategy;
56
+ /**
57
+ * Get query for load only count of deleted rows
58
+ */
59
+ get loadDeletedOffsetQuery(): {
60
+ offset: number;
61
+ limit: number;
62
+ };
63
+ get initialized(): boolean;
64
+ get strategy(): PaginationStrategy;
65
+ set strategy(strategy: PaginationStrategy);
66
+ /**
67
+ * Check if pagination in Page Strategy Mode
68
+ */
69
+ get hasPageStrategy(): boolean;
70
+ /**
71
+ * Check if pagination in Offset Strategy Mode
72
+ */
73
+ get hasOffsetStrategy(): boolean;
74
+ /**
75
+ * Check if pagination in None Strategy Mode
76
+ */
77
+ get hasNoneStrategy(): boolean;
78
+ /**
79
+ * If prev page can be activated
80
+ *
81
+ */
82
+ get hasPrevPage(): boolean;
83
+ /**
84
+ * If next page can be activated
85
+ */
86
+ get hasNextPage(): boolean;
87
+ get loadMoreEnabled(): boolean;
88
+ get loadMoreText(): string;
89
+ get infinityScrollEnabled(): boolean;
90
+ /**
91
+ * SP-T1974
92
+ * Showing 26-50 of 333 results sorted by Name, Ascending
93
+ * Showing 0 results sorted by Name, Ascending
94
+ */
95
+ get statusLabel(): string;
96
+ initWithConfig(config: FsPaging | false, loadMore: FsListLoadMoreConfig | boolean, infinityScrollEnabled?: boolean): void;
97
+ /**
98
+ * If pagination has prev page when Page Strategy
99
+ */
100
+ private get _hasPrevPagePageStrategy();
101
+ /**
102
+ * If pagination has prev page when Offset Strategy
103
+ */
104
+ private get _hasPrevPageOffsetStrategy();
105
+ /**
106
+ * If pagination has next page when Page Strategy
107
+ */
108
+ private get _hasNextPagePageStrategy();
109
+ /**
110
+ * If pagination has next page when Offset Strategy
111
+ */
112
+ private get _hasNextPageOffsetStrategy();
113
+ /**
114
+ * Update paging config and all related fields
115
+ * @param config
116
+ * @param displayedRecords
117
+ * @param loadMoreOperation
118
+ */
119
+ updatePaging(config: any, displayedRecords?: number, loadMoreOperation?: boolean): void;
120
+ /**
121
+ * Update pages array with new pages count
122
+ */
123
+ setLoadMore(config: FsListLoadMoreConfig | boolean): void;
124
+ /**
125
+ * Update dispayed records counter
126
+ */
127
+ /**
128
+ * Return count of records that could be shown on page
129
+ */
130
+ getVisibleRecords(): number;
131
+ /**
132
+ * Set new limit
133
+ * @param limit
134
+ */
135
+ setLimit(limit: any): void;
136
+ /**
137
+ * If page is activate page
138
+ * @param page
139
+ */
140
+ isActive(page: any): boolean;
141
+ /**
142
+ * Go to page
143
+ * @param page
144
+ */
145
+ goToPage(page: any): void;
146
+ /**
147
+ * Reset paging like it was just initialized
148
+ */
149
+ resetPaging(): void;
150
+ /**
151
+ * Go to next page
152
+ */
153
+ goNext(): void;
154
+ /**
155
+ * Go to first page
156
+ */
157
+ goFirst(): void;
158
+ /**
159
+ * Go to prev page
160
+ */
161
+ goPrev(): void;
162
+ /**
163
+ * Go to last page
164
+ */
165
+ goLast(): void;
166
+ /**
167
+ * Update count of deleted rows. This count will be applied for offset calc
168
+ * @param count
169
+ */
170
+ removeRows(count: number): void;
171
+ updatePagination(): void;
172
+ /**
173
+ * Destroy
174
+ */
175
+ destroy(): void;
176
+ /**
177
+ * Update paging state
178
+ * @param params
179
+ */
180
+ private _fromParams;
181
+ /**
182
+ * Calc and update offset
183
+ */
184
+ private updateOffset;
185
+ /**
186
+ * Calc and update total count of pages
187
+ */
188
+ private updateTotalPages;
189
+ }
@@ -1,10 +1,10 @@
1
- import { ActivatedRoute } from '@angular/router';
2
- import { FsPersistanceStore, FsStore } from '@firestitch/store';
3
- import { FsListPersitance } from '../interfaces';
4
- import * as i0 from "@angular/core";
5
- export declare class PersistanceController extends FsPersistanceStore<FsListPersitance> {
6
- protected STORE_KEY: string;
7
- constructor(_store: FsStore, _route: ActivatedRoute);
8
- static ɵfac: i0.ɵɵFactoryDeclaration<PersistanceController, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<PersistanceController>;
10
- }
1
+ import { ActivatedRoute } from '@angular/router';
2
+ import { FsPersistanceStore, FsStore } from '@firestitch/store';
3
+ import { FsListPersitance } from '../interfaces';
4
+ import * as i0 from "@angular/core";
5
+ export declare class PersistanceController extends FsPersistanceStore<FsListPersitance> {
6
+ protected STORE_KEY: string;
7
+ constructor(_store: FsStore, _route: ActivatedRoute);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<PersistanceController, never>;
9
+ static ɵprov: i0.ɵɵInjectableDeclaration<PersistanceController>;
10
+ }
@@ -1,62 +1,62 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
4
- import { DataController } from './data-controller';
5
- import { ActionsController } from './actions-controller';
6
- import * as i0 from "@angular/core";
7
- export declare enum ReorderPosition {
8
- Left = "left",
9
- Right = "right"
10
- }
11
- export declare enum ReorderStrategy {
12
- Always = "always",
13
- Manual = "manual",
14
- Custom = "custom"
15
- }
16
- export declare class ReorderController implements OnDestroy {
17
- startCallback: () => void | Observable<void>;
18
- movedCallback: FsListReorderMovedCallback;
19
- doneCallback: FsListReorderDoneCallback;
20
- moveDropCallback: FsListReorderMoveInGroupCallback;
21
- status: boolean;
22
- label: string;
23
- menu: boolean;
24
- position: ReorderPosition;
25
- strategy: ReorderStrategy;
26
- private _dataController;
27
- private _actionsController;
28
- private _enabled$;
29
- private _manualReorderActivated$;
30
- private _reorderDisabled$;
31
- private _numberOfActiveFilters;
32
- private _destroy$;
33
- constructor();
34
- get enabled(): boolean;
35
- set enabled(value: boolean);
36
- get dataController(): DataController;
37
- get manualReorderActivated$(): Observable<boolean>;
38
- get manualReorderActivated(): boolean;
39
- get leftReorderActivated$(): Observable<boolean>;
40
- get rightReorderActivated$(): Observable<boolean>;
41
- get reorderDisabled$(): Observable<boolean>;
42
- get reorderDisabled(): boolean;
43
- initWithConfig(data: any, dataController: DataController, actionsController: ActionsController): void;
44
- enableReorder(): void;
45
- disableReorder(): void;
46
- /**
47
- * Exec end callback
48
- */
49
- reorderFinished(): void | Observable<any>;
50
- ngOnDestroy(): void;
51
- /**
52
- * Enable reorder action and update filter actions state
53
- */
54
- enableReorderAction(): void;
55
- /**
56
- * Disable reorder action and update filter actions state
57
- */
58
- disableReorderAction(): void;
59
- setNunberOfActiveFilters(activeFilters: number): void;
60
- static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
61
- static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
62
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
4
+ import { DataController } from './data-controller';
5
+ import { ActionsController } from './actions-controller';
6
+ import * as i0 from "@angular/core";
7
+ export declare enum ReorderPosition {
8
+ Left = "left",
9
+ Right = "right"
10
+ }
11
+ export declare enum ReorderStrategy {
12
+ Always = "always",
13
+ Manual = "manual",
14
+ Custom = "custom"
15
+ }
16
+ export declare class ReorderController implements OnDestroy {
17
+ startCallback: () => void | Observable<void>;
18
+ movedCallback: FsListReorderMovedCallback;
19
+ doneCallback: FsListReorderDoneCallback;
20
+ moveDropCallback: FsListReorderMoveInGroupCallback;
21
+ status: boolean;
22
+ label: string;
23
+ menu: boolean;
24
+ position: ReorderPosition;
25
+ strategy: ReorderStrategy;
26
+ private _dataController;
27
+ private _actionsController;
28
+ private _enabled$;
29
+ private _manualReorderActivated$;
30
+ private _reorderDisabled$;
31
+ private _numberOfActiveFilters;
32
+ private _destroy$;
33
+ constructor();
34
+ get enabled(): boolean;
35
+ set enabled(value: boolean);
36
+ get dataController(): DataController;
37
+ get manualReorderActivated$(): Observable<boolean>;
38
+ get manualReorderActivated(): boolean;
39
+ get leftReorderActivated$(): Observable<boolean>;
40
+ get rightReorderActivated$(): Observable<boolean>;
41
+ get reorderDisabled$(): Observable<boolean>;
42
+ get reorderDisabled(): boolean;
43
+ initWithConfig(data: any, dataController: DataController, actionsController: ActionsController): void;
44
+ enableReorder(): void;
45
+ disableReorder(): void;
46
+ /**
47
+ * Exec end callback
48
+ */
49
+ reorderFinished(): void | Observable<any>;
50
+ ngOnDestroy(): void;
51
+ /**
52
+ * Enable reorder action and update filter actions state
53
+ */
54
+ enableReorderAction(): void;
55
+ /**
56
+ * Disable reorder action and update filter actions state
57
+ */
58
+ disableReorderAction(): void;
59
+ setNunberOfActiveFilters(activeFilters: number): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
61
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
62
+ }