@firestitch/list 13.2.3 → 14.0.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 (159) 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 +88 -90
  4. package/app/classes/external-params-controller.d.ts +32 -32
  5. package/app/classes/index.d.ts +2 -2
  6. package/app/classes/list-controller.d.ts +188 -194
  7. package/app/classes/pagination-controller.d.ts +197 -199
  8. package/app/classes/persistance-controller.d.ts +10 -10
  9. package/app/classes/reorder-controller.d.ts +67 -67
  10. package/app/classes/selection-controller.d.ts +155 -155
  11. package/app/classes/sorting-controller.d.ts +70 -70
  12. package/app/components/body/body.component.d.ts +28 -28
  13. package/app/components/body/row/actions/actions.component.d.ts +36 -36
  14. package/app/components/body/row/cell/cell.component.d.ts +22 -22
  15. package/app/components/body/row/inline-action/inline-action.component.d.ts +13 -13
  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 +85 -85
  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 +127 -128
  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 +20 -21
  30. package/app/directives/cell/cell.directive.d.ts +8 -8
  31. package/app/directives/column/column.directive.d.ts +37 -37
  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/action-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 +4 -4
  58. package/app/interfaces/listconfig.interface.d.ts +245 -252
  59. package/app/interfaces/pagination-state.interface.d.ts +9 -9
  60. package/app/interfaces/pagination.interface.d.ts +13 -13
  61. package/app/interfaces/sorting-change-event.interface.d.ts +4 -4
  62. package/app/models/column-async-attribute.d.ts +5 -5
  63. package/app/models/column-attributes.d.ts +39 -39
  64. package/app/models/column.model.d.ts +61 -61
  65. package/app/models/row/base-row.d.ts +13 -13
  66. package/app/models/row/child-row.d.ts +12 -12
  67. package/app/models/row/group-footer-row.d.ts +10 -10
  68. package/app/models/row/group-row.d.ts +16 -16
  69. package/app/models/row/simple-row.d.ts +5 -5
  70. package/app/models/row-action.model.d.ts +29 -29
  71. package/app/models/row.d.ts +34 -34
  72. package/app/models/styleConfig.model.d.ts +31 -31
  73. package/app/pipes/action-label.d.ts +8 -8
  74. package/app/pipes/index.d.ts +1 -1
  75. package/app/services/group-expand-notifier.service.d.ts +11 -11
  76. package/esm2020/app/classes/actions-controller.mjs +55 -55
  77. package/esm2020/app/classes/columns-controller.mjs +205 -205
  78. package/esm2020/app/classes/data-controller.mjs +345 -363
  79. package/esm2020/app/classes/external-params-controller.mjs +147 -147
  80. package/esm2020/app/classes/index.mjs +3 -3
  81. package/esm2020/app/classes/list-controller.mjs +674 -745
  82. package/esm2020/app/classes/pagination-controller.mjs +491 -496
  83. package/esm2020/app/classes/persistance-controller.mjs +19 -19
  84. package/esm2020/app/classes/reorder-controller.mjs +181 -181
  85. package/esm2020/app/classes/selection-controller.mjs +466 -468
  86. package/esm2020/app/classes/sorting-controller.mjs +201 -201
  87. package/esm2020/app/components/body/body.component.mjs +63 -63
  88. package/esm2020/app/components/body/row/actions/actions.component.mjs +96 -96
  89. package/esm2020/app/components/body/row/cell/cell.component.mjs +107 -107
  90. package/esm2020/app/components/body/row/inline-action/inline-action.component.mjs +32 -32
  91. package/esm2020/app/components/body/row/menu-action/menu-action.component.mjs +45 -45
  92. package/esm2020/app/components/body/row/row.component.mjs +321 -321
  93. package/esm2020/app/components/customize-cols/customize-cols.component.mjs +68 -68
  94. package/esm2020/app/components/footer/footer-row/footer-cell/footer-cell.component.mjs +16 -16
  95. package/esm2020/app/components/footer/footer-row/footer-row.component.mjs +27 -27
  96. package/esm2020/app/components/footer/footer.component.mjs +30 -30
  97. package/esm2020/app/components/head/head-cell/head-cell.component.mjs +29 -29
  98. package/esm2020/app/components/head/head.component.mjs +102 -102
  99. package/esm2020/app/components/list/list.component.mjs +385 -392
  100. package/esm2020/app/components/loader/loader.component.mjs +40 -40
  101. package/esm2020/app/components/manage-saved-filters/manage-saved-filters.component.mjs +76 -76
  102. package/esm2020/app/components/pagination/pagination.component.mjs +37 -37
  103. package/esm2020/app/components/saved-filters/saved-filters.component.mjs +29 -29
  104. package/esm2020/app/components/status/status.component.mjs +64 -66
  105. package/esm2020/app/directives/cell/cell.directive.mjs +18 -18
  106. package/esm2020/app/directives/column/column.directive.mjs +120 -120
  107. package/esm2020/app/directives/content/content.directive.mjs +12 -12
  108. package/esm2020/app/directives/content-init/content-init.directive.mjs +21 -21
  109. package/esm2020/app/directives/draggable-list/draggable-list.directive.mjs +327 -327
  110. package/esm2020/app/directives/draggable-row/draggable-row.directive.mjs +77 -77
  111. package/esm2020/app/directives/empty-state/empty-state.directive.mjs +13 -13
  112. package/esm2020/app/directives/footer/footer.directive.mjs +18 -18
  113. package/esm2020/app/directives/group-expand-trigger/group-expand-trigger.directive.mjs +26 -26
  114. package/esm2020/app/directives/group-footer/group-footer.directive.mjs +13 -13
  115. package/esm2020/app/directives/group-header/group-header.directive.mjs +13 -13
  116. package/esm2020/app/directives/header/header.directive.mjs +18 -18
  117. package/esm2020/app/directives/heading/heading.directive.mjs +13 -13
  118. package/esm2020/app/directives/heading-container/heading-container.directive.mjs +13 -13
  119. package/esm2020/app/directives/index.mjs +4 -4
  120. package/esm2020/app/directives/subheading/subheading.directive.mjs +13 -13
  121. package/esm2020/app/enums/action-type.enum.mjs +8 -8
  122. package/esm2020/app/enums/page-change-type.enum.mjs +6 -6
  123. package/esm2020/app/enums/pagination-strategy.enum.mjs +7 -7
  124. package/esm2020/app/enums/row-type.enum.mjs +7 -7
  125. package/esm2020/app/enums/state.enum.mjs +11 -11
  126. package/esm2020/app/fs-list.module.mjs +244 -246
  127. package/esm2020/app/fs-list.providers.mjs +4 -4
  128. package/esm2020/app/interfaces/cellconfig.interface.mjs +2 -2
  129. package/esm2020/app/interfaces/column-config.interface.mjs +1 -1
  130. package/esm2020/app/interfaces/draggable-list.interface.mjs +2 -2
  131. package/esm2020/app/interfaces/external-params.interface.mjs +2 -2
  132. package/esm2020/app/interfaces/index.mjs +5 -5
  133. package/esm2020/app/interfaces/listconfig.interface.mjs +2 -2
  134. package/esm2020/app/interfaces/pagination-state.interface.mjs +1 -1
  135. package/esm2020/app/interfaces/pagination.interface.mjs +2 -2
  136. package/esm2020/app/interfaces/sorting-change-event.interface.mjs +2 -2
  137. package/esm2020/app/models/column-async-attribute.mjs +13 -13
  138. package/esm2020/app/models/column-attributes.mjs +131 -131
  139. package/esm2020/app/models/column.model.mjs +163 -163
  140. package/esm2020/app/models/row/base-row.mjs +23 -23
  141. package/esm2020/app/models/row/child-row.mjs +28 -28
  142. package/esm2020/app/models/row/group-footer-row.mjs +20 -20
  143. package/esm2020/app/models/row/group-row.mjs +44 -44
  144. package/esm2020/app/models/row/simple-row.mjs +10 -10
  145. package/esm2020/app/models/row-action.model.mjs +89 -89
  146. package/esm2020/app/models/row.mjs +88 -88
  147. package/esm2020/app/models/styleConfig.model.mjs +75 -75
  148. package/esm2020/app/pipes/action-label.mjs +16 -16
  149. package/esm2020/app/pipes/index.mjs +1 -1
  150. package/esm2020/app/services/group-expand-notifier.service.mjs +26 -26
  151. package/esm2020/firestitch-list.mjs +4 -4
  152. package/esm2020/public_api.mjs +46 -46
  153. package/fesm2015/firestitch-list.mjs +5643 -5749
  154. package/fesm2015/firestitch-list.mjs.map +1 -1
  155. package/fesm2020/firestitch-list.mjs +5636 -5742
  156. package/fesm2020/firestitch-list.mjs.map +1 -1
  157. package/{firestitch-list.d.ts → index.d.ts} +5 -5
  158. package/package.json +3 -3
  159. package/public_api.d.ts +41 -41
@@ -1,199 +1,197 @@
1
- import { Observable } from 'rxjs';
2
- import { PaginationStrategy } from '../enums/pagination-strategy.enum';
3
- import { FsListLoadMoreConfig, FsPaging, PageChange, QueryOffsetStrategy, QueryPageStrategy } from '../interfaces';
4
- import { IPaginationState } from '../interfaces/pagination-state.interface';
5
- export declare class PaginationController {
6
- limit: number;
7
- records: number;
8
- manual: boolean;
9
- page: number;
10
- offset: number;
11
- displayed: number;
12
- private _pages$;
13
- private _strategy;
14
- private _removedRows;
15
- private _pageChanged$;
16
- private _pageReset$;
17
- private _onDestroy$;
18
- private _loadMoreConfig;
19
- private _infinityScrollEnabled;
20
- private _limits;
21
- set pages(value: number);
22
- get pages(): number;
23
- get pages$(): Observable<number>;
24
- /**
25
- * Fire if page was changed
26
- */
27
- get pageChanged$(): Observable<PageChange>;
28
- get pageReset$(): Observable<void>;
29
- /**
30
- * Get enabled
31
- */
32
- get enabled(): boolean;
33
- /**
34
- * Get Limits
35
- */
36
- get limits(): number[];
37
- /**
38
- * Set limits, update pages array and set new limit per page
39
- *
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 loadMoreLabel(): string;
89
- get loadMoreButtonColor(): string;
90
- get loadMoreButtonClass(): string;
91
- get loadMoreButtonType(): string;
92
- get infinityScrollEnabled(): boolean;
93
- /**
94
- * SP-T1974
95
- * Showing 26-50 of 333 results sorted by Name, Ascending
96
- * Showing 0 results sorted by Name, Ascending
97
- */
98
- get statusLabel(): string;
99
- get state(): IPaginationState;
100
- initWithConfig(config: FsPaging | false, loadMore: FsListLoadMoreConfig | boolean, infinityScrollEnabled?: boolean): void;
101
- /**
102
- * If pagination has prev page when Page Strategy
103
- */
104
- private get _hasPrevPagePageStrategy();
105
- /**
106
- * If pagination has prev page when Offset Strategy
107
- */
108
- private get _hasPrevPageOffsetStrategy();
109
- /**
110
- * If pagination has next page when Page Strategy
111
- */
112
- private get _hasNextPagePageStrategy();
113
- /**
114
- * If pagination has next page when Offset Strategy
115
- */
116
- private get _hasNextPageOffsetStrategy();
117
- /**
118
- * Update paging config and all related fields
119
- *
120
- * @param config
121
- * @param displayedRecords
122
- * @param loadMoreOperation
123
- */
124
- updatePaging(config: any, displayedRecords?: number, loadMoreOperation?: boolean): void;
125
- /**
126
- * Update pages array with new pages count
127
- */
128
- setLoadMore(config: FsListLoadMoreConfig | boolean): void;
129
- /**
130
- * Update dispayed records counter
131
- */
132
- /**
133
- * Return count of records that could be shown on page
134
- */
135
- getVisibleRecords(): number;
136
- /**
137
- * Set new limit
138
- *
139
- * @param limit
140
- */
141
- setLimit(limit: any): void;
142
- /**
143
- * If page is activate page
144
- *
145
- * @param page
146
- */
147
- isActive(page: any): boolean;
148
- /**
149
- * Go to page
150
- *
151
- * @param page
152
- */
153
- goToPage(page: any): void;
154
- /**
155
- * Reset paging like it was just initialized
156
- */
157
- resetPaging(): void;
158
- /**
159
- * Go to next page
160
- */
161
- goNext(): void;
162
- /**
163
- * Go to first page
164
- */
165
- goFirst(): void;
166
- /**
167
- * Go to prev page
168
- */
169
- goPrev(): void;
170
- /**
171
- * Go to last page
172
- */
173
- goLast(): void;
174
- /**
175
- * Update count of deleted rows. This count will be applied for offset calc
176
- *
177
- * @param count
178
- */
179
- removeRows(count: number): void;
180
- updatePagination(): void;
181
- /**
182
- * Destroy
183
- */
184
- destroy(): void;
185
- /**
186
- * Update paging state
187
- *
188
- * @param params
189
- */
190
- private _fromParams;
191
- /**
192
- * Calc and update offset
193
- */
194
- private _updateOffset;
195
- /**
196
- * Calc and update total count of pages
197
- */
198
- private _updateTotalPages;
199
- }
1
+ import { Observable } from 'rxjs';
2
+ import { PaginationStrategy } from '../enums/pagination-strategy.enum';
3
+ import { FsListLoadMoreConfig, FsPaging, PageChange, QueryOffsetStrategy, QueryPageStrategy } from '../interfaces';
4
+ import { IPaginationState } from '../interfaces/pagination-state.interface';
5
+ export declare class PaginationController {
6
+ limit: number;
7
+ records: number;
8
+ manual: boolean;
9
+ page: number;
10
+ offset: number;
11
+ displayed: number;
12
+ private _pages$;
13
+ private _strategy;
14
+ private _removedRows;
15
+ private _pageChanged$;
16
+ private _pageReset$;
17
+ private _onDestroy$;
18
+ private _loadMoreConfig;
19
+ private _limits;
20
+ set pages(value: number);
21
+ get pages(): number;
22
+ get pages$(): Observable<number>;
23
+ /**
24
+ * Fire if page was changed
25
+ */
26
+ get pageChanged$(): Observable<PageChange>;
27
+ get pageReset$(): Observable<void>;
28
+ /**
29
+ * Get enabled
30
+ */
31
+ get enabled(): boolean;
32
+ /**
33
+ * Get Limits
34
+ */
35
+ get limits(): number[];
36
+ /**
37
+ * Set limits, update pages array and set new limit per page
38
+ *
39
+ * @param value
40
+ */
41
+ set limits(value: number[]);
42
+ /**
43
+ * Get query for request
44
+ */
45
+ get query(): QueryPageStrategy | QueryOffsetStrategy;
46
+ get loadMoreQuery(): QueryPageStrategy | QueryOffsetStrategy;
47
+ /**
48
+ * Query for Page Strategy
49
+ */
50
+ get queryPageStrategy(): QueryPageStrategy;
51
+ /**
52
+ * Query for Offset Strategy
53
+ */
54
+ get queryOffsetStrategy(): QueryOffsetStrategy;
55
+ /**
56
+ * Get query for load only count of deleted rows
57
+ */
58
+ get loadDeletedOffsetQuery(): {
59
+ offset: number;
60
+ limit: number;
61
+ };
62
+ get initialized(): boolean;
63
+ get strategy(): PaginationStrategy;
64
+ set strategy(strategy: PaginationStrategy);
65
+ /**
66
+ * Check if pagination in Page Strategy Mode
67
+ */
68
+ get hasPageStrategy(): boolean;
69
+ /**
70
+ * Check if pagination in Offset Strategy Mode
71
+ */
72
+ get hasOffsetStrategy(): boolean;
73
+ /**
74
+ * Check if pagination in None Strategy Mode
75
+ */
76
+ get hasNoneStrategy(): boolean;
77
+ /**
78
+ * If prev page can be activated
79
+ *
80
+ */
81
+ get hasPrevPage(): boolean;
82
+ /**
83
+ * If next page can be activated
84
+ */
85
+ get hasNextPage(): boolean;
86
+ get loadMoreEnabled(): boolean;
87
+ get loadMoreLabel(): string;
88
+ get loadMoreButtonColor(): string;
89
+ get loadMoreButtonClass(): string;
90
+ get loadMoreButtonType(): string;
91
+ /**
92
+ * SP-T1974
93
+ * Showing 26-50 of 333 results sorted by Name, Ascending
94
+ * Showing 0 results sorted by Name, Ascending
95
+ */
96
+ get statusLabel(): string;
97
+ get state(): IPaginationState;
98
+ initWithConfig(config: FsPaging | false, loadMore: FsListLoadMoreConfig | boolean): void;
99
+ /**
100
+ * If pagination has prev page when Page Strategy
101
+ */
102
+ private get _hasPrevPagePageStrategy();
103
+ /**
104
+ * If pagination has prev page when Offset Strategy
105
+ */
106
+ private get _hasPrevPageOffsetStrategy();
107
+ /**
108
+ * If pagination has next page when Page Strategy
109
+ */
110
+ private get _hasNextPagePageStrategy();
111
+ /**
112
+ * If pagination has next page when Offset Strategy
113
+ */
114
+ private get _hasNextPageOffsetStrategy();
115
+ /**
116
+ * Update paging config and all related fields
117
+ *
118
+ * @param config
119
+ * @param displayedRecords
120
+ * @param loadMoreOperation
121
+ */
122
+ updatePaging(config: any, displayedRecords?: number, loadMoreOperation?: boolean): void;
123
+ /**
124
+ * Update pages array with new pages count
125
+ */
126
+ setLoadMore(config: FsListLoadMoreConfig | boolean): void;
127
+ /**
128
+ * Update dispayed records counter
129
+ */
130
+ /**
131
+ * Return count of records that could be shown on page
132
+ */
133
+ getVisibleRecords(): number;
134
+ /**
135
+ * Set new limit
136
+ *
137
+ * @param limit
138
+ */
139
+ setLimit(limit: any): void;
140
+ /**
141
+ * If page is activate page
142
+ *
143
+ * @param page
144
+ */
145
+ isActive(page: any): boolean;
146
+ /**
147
+ * Go to page
148
+ *
149
+ * @param page
150
+ */
151
+ goToPage(page: any): void;
152
+ /**
153
+ * Reset paging like it was just initialized
154
+ */
155
+ resetPaging(): void;
156
+ /**
157
+ * Go to next page
158
+ */
159
+ goNext(): void;
160
+ /**
161
+ * Go to first page
162
+ */
163
+ goFirst(): void;
164
+ /**
165
+ * Go to prev page
166
+ */
167
+ goPrev(): void;
168
+ /**
169
+ * Go to last page
170
+ */
171
+ goLast(): void;
172
+ /**
173
+ * Update count of deleted rows. This count will be applied for offset calc
174
+ *
175
+ * @param count
176
+ */
177
+ removeRows(count: number): void;
178
+ updatePagination(): void;
179
+ /**
180
+ * Destroy
181
+ */
182
+ destroy(): void;
183
+ /**
184
+ * Update paging state
185
+ *
186
+ * @param params
187
+ */
188
+ private _fromParams;
189
+ /**
190
+ * Calc and update offset
191
+ */
192
+ private _updateOffset;
193
+ /**
194
+ * Calc and update total count of pages
195
+ */
196
+ private _updateTotalPages;
197
+ }
@@ -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,67 +1,67 @@
1
- import { OnDestroy } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { FsListReorderConfig, FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
4
- import { ActionsController } from './actions-controller';
5
- import { DataController } from './data-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
- get enabled(): boolean;
36
- set enabled(value: boolean);
37
- get strategy(): ReorderStrategy | null;
38
- get position(): ReorderPosition | null;
39
- get dataController(): DataController;
40
- get selectionController(): SelectionController;
41
- get enabled$(): Observable<boolean>;
42
- get position$(): Observable<ReorderPosition>;
43
- get strategy$(): Observable<ReorderStrategy>;
44
- get manualReorderActivated(): boolean;
45
- get reorderDisabled$(): Observable<boolean>;
46
- get reorderDisabled(): boolean;
47
- initWithConfig(data: FsListReorderConfig, dataController: DataController, actionsController: ActionsController, selectionController: SelectionController): void;
48
- enableReorder(): void;
49
- disableReorder(): void;
50
- /**
51
- * Exec end callback
52
- */
53
- reorderFinished(): void | Observable<any>;
54
- ngOnDestroy(): void;
55
- /**
56
- * Enable reorder action and update filter actions state
57
- */
58
- enableReorderAction(): void;
59
- /**
60
- * Disable reorder action and update filter actions state
61
- */
62
- disableReorderAction(): void;
63
- private _setPosition;
64
- private _setStrategy;
65
- static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
66
- static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
67
- }
1
+ import { OnDestroy } from '@angular/core';
2
+ import { Observable } from 'rxjs';
3
+ import { FsListReorderConfig, FsListReorderDoneCallback, FsListReorderMovedCallback, FsListReorderMoveInGroupCallback } from '../interfaces';
4
+ import { ActionsController } from './actions-controller';
5
+ import { DataController } from './data-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
+ get enabled(): boolean;
36
+ set enabled(value: boolean);
37
+ get strategy(): ReorderStrategy | null;
38
+ get position(): ReorderPosition | null;
39
+ get dataController(): DataController;
40
+ get selectionController(): SelectionController;
41
+ get enabled$(): Observable<boolean>;
42
+ get position$(): Observable<ReorderPosition>;
43
+ get strategy$(): Observable<ReorderStrategy>;
44
+ get manualReorderActivated(): boolean;
45
+ get reorderDisabled$(): Observable<boolean>;
46
+ get reorderDisabled(): boolean;
47
+ initWithConfig(data: FsListReorderConfig, dataController: DataController, actionsController: ActionsController, selectionController: SelectionController): void;
48
+ enableReorder(): void;
49
+ disableReorder(): void;
50
+ /**
51
+ * Exec end callback
52
+ */
53
+ reorderFinished(): void | Observable<any>;
54
+ ngOnDestroy(): void;
55
+ /**
56
+ * Enable reorder action and update filter actions state
57
+ */
58
+ enableReorderAction(): void;
59
+ /**
60
+ * Disable reorder action and update filter actions state
61
+ */
62
+ disableReorderAction(): void;
63
+ private _setPosition;
64
+ private _setStrategy;
65
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReorderController, never>;
66
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReorderController>;
67
+ }