@firestitch/list 12.17.1 → 12.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +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 +23 -22
  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 +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 +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 +267 -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 +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 +6929 -6909
  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 +365 -353
  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 +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 -106
  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 +31 -31
  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 +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 +328 -328
  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 +5709 -5690
  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,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,68 +1,68 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { FsListReorderConfig, FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
4
- import { DataController } from './data-controller';
5
- import { ActionsController } from './actions-controller';
6
- import { SelectionController } from './selection-controller';
7
- import * as i0 from "@angular/core";
8
- export declare enum ReorderPosition {
9
- Left = "left",
10
- Right = "right"
11
- }
12
- export declare enum ReorderStrategy {
13
- Always = "always",
14
- Manual = "manual",
15
- Custom = "custom"
16
- }
17
- export declare class ReorderController implements OnDestroy {
18
- startCallback: () => void | Observable<void>;
19
- movedCallback: FsListReorderMovedCallback;
20
- doneCallback: FsListReorderDoneCallback;
21
- moveDropCallback: FsListReorderMoveInGroupCallback;
22
- status: boolean;
23
- label: string;
24
- menu: boolean;
25
- multiple: boolean;
26
- private _dataController;
27
- private _actionsController;
28
- private _selectionController;
29
- private _enabled$;
30
- private _manualReorderActivated$;
31
- private _reorderDisabled$;
32
- private _position;
33
- private _strategy;
34
- private _destroy$;
35
- constructor();
36
- get enabled(): boolean;
37
- set enabled(value: boolean);
38
- get strategy(): ReorderStrategy | null;
39
- get position(): ReorderPosition | null;
40
- get dataController(): DataController;
41
- get selectionController(): SelectionController;
42
- get enabled$(): Observable<boolean>;
43
- get position$(): Observable<ReorderPosition>;
44
- get strategy$(): Observable<ReorderStrategy>;
45
- get manualReorderActivated(): boolean;
46
- get reorderDisabled$(): Observable<boolean>;
47
- get reorderDisabled(): boolean;
48
- initWithConfig(data: FsListReorderConfig, dataController: DataController, actionsController: ActionsController, selectionController: SelectionController): void;
49
- enableReorder(): void;
50
- disableReorder(): void;
51
- /**
52
- * Exec end callback
53
- */
54
- reorderFinished(): void | Observable<any>;
55
- ngOnDestroy(): void;
56
- /**
57
- * Enable reorder action and update filter actions state
58
- */
59
- enableReorderAction(): void;
60
- /**
61
- * Disable reorder action and update filter actions state
62
- */
63
- disableReorderAction(): void;
64
- private _setPosition;
65
- private _setStrategy;
66
- static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
67
- static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
68
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { FsListReorderConfig, FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
4
+ import { DataController } from './data-controller';
5
+ import { ActionsController } from './actions-controller';
6
+ import { SelectionController } from './selection-controller';
7
+ import * as i0 from "@angular/core";
8
+ export declare enum ReorderPosition {
9
+ Left = "left",
10
+ Right = "right"
11
+ }
12
+ export declare enum ReorderStrategy {
13
+ Always = "always",
14
+ Manual = "manual",
15
+ Custom = "custom"
16
+ }
17
+ export declare class ReorderController implements OnDestroy {
18
+ startCallback: () => void | Observable<void>;
19
+ movedCallback: FsListReorderMovedCallback;
20
+ doneCallback: FsListReorderDoneCallback;
21
+ moveDropCallback: FsListReorderMoveInGroupCallback;
22
+ status: boolean;
23
+ label: string;
24
+ menu: boolean;
25
+ multiple: boolean;
26
+ private _dataController;
27
+ private _actionsController;
28
+ private _selectionController;
29
+ private _enabled$;
30
+ private _manualReorderActivated$;
31
+ private _reorderDisabled$;
32
+ private _position;
33
+ private _strategy;
34
+ private _destroy$;
35
+ constructor();
36
+ get enabled(): boolean;
37
+ set enabled(value: boolean);
38
+ get strategy(): ReorderStrategy | null;
39
+ get position(): ReorderPosition | null;
40
+ get dataController(): DataController;
41
+ get selectionController(): SelectionController;
42
+ get enabled$(): Observable<boolean>;
43
+ get position$(): Observable<ReorderPosition>;
44
+ get strategy$(): Observable<ReorderStrategy>;
45
+ get manualReorderActivated(): boolean;
46
+ get reorderDisabled$(): Observable<boolean>;
47
+ get reorderDisabled(): boolean;
48
+ initWithConfig(data: FsListReorderConfig, dataController: DataController, actionsController: ActionsController, selectionController: SelectionController): void;
49
+ enableReorder(): void;
50
+ disableReorder(): void;
51
+ /**
52
+ * Exec end callback
53
+ */
54
+ reorderFinished(): void | Observable<any>;
55
+ ngOnDestroy(): void;
56
+ /**
57
+ * Enable reorder action and update filter actions state
58
+ */
59
+ enableReorderAction(): void;
60
+ /**
61
+ * Disable reorder action and update filter actions state
62
+ */
63
+ disableReorderAction(): void;
64
+ private _setPosition;
65
+ private _setStrategy;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
67
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
68
+ }