@oneteme/jquery-table 0.0.5 → 0.0.7
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.
- package/esm2022/lib/component/slice-panel/slice-panel.component.mjs +34 -1
- package/esm2022/lib/component/table.component.mjs +42 -11
- package/esm2022/lib/jqt-i18n.token.mjs +5 -5
- package/esm2022/lib/jquery-table.model.mjs +1 -1
- package/fesm2022/oneteme-jquery-table.mjs +78 -14
- package/fesm2022/oneteme-jquery-table.mjs.map +1 -1
- package/lib/component/slice-panel/slice-panel.component.d.ts +1 -0
- package/lib/component/table.component.d.ts +8 -2
- package/lib/jquery-table.model.d.ts +6 -0
- package/package.json +1 -1
|
@@ -68,6 +68,7 @@ export declare class SlicePanelComponent<T = any> implements OnChanges, OnInit {
|
|
|
68
68
|
removeDynamicSliceByKey(key: string): void;
|
|
69
69
|
private _emitFilter;
|
|
70
70
|
private _getDynamicSliceColumnKey;
|
|
71
|
+
private _getSliceIdentity;
|
|
71
72
|
private _materializeSlice;
|
|
72
73
|
private _buildCategoryFromValue;
|
|
73
74
|
private _computeDistinctValues;
|
|
@@ -26,6 +26,8 @@ export declare class TableComponent<T = any> implements OnChanges, AfterContentI
|
|
|
26
26
|
view?: TableViewConfig;
|
|
27
27
|
columnLabels?: Record<string, string>;
|
|
28
28
|
isLoading: boolean;
|
|
29
|
+
/** Paramètre de contrôle pour réinitialiser barre de recherche. */
|
|
30
|
+
set clearSearchInput(value: boolean | null | undefined);
|
|
29
31
|
addRequested: EventEmitter<void>;
|
|
30
32
|
columnAdded: EventEmitter<TableColumnProvider<T>>;
|
|
31
33
|
columnRemoved: EventEmitter<TableColumnProvider<T>>;
|
|
@@ -161,7 +163,7 @@ export declare class TableComponent<T = any> implements OnChanges, AfterContentI
|
|
|
161
163
|
private _columnMap;
|
|
162
164
|
private _resolvedData;
|
|
163
165
|
private _preservePageIndex;
|
|
164
|
-
private
|
|
166
|
+
private _lastConfigClearSearchInput;
|
|
165
167
|
private static readonly MAX_GROUP_COUNT;
|
|
166
168
|
private _allFilteredRows;
|
|
167
169
|
private _paginatorSubscribed;
|
|
@@ -186,6 +188,7 @@ export declare class TableComponent<T = any> implements OnChanges, AfterContentI
|
|
|
186
188
|
get showSliceExpandBtn(): boolean;
|
|
187
189
|
get showExportButton(): boolean;
|
|
188
190
|
get showPreferencesMenu(): boolean;
|
|
191
|
+
get isDefaultGroupByActive(): boolean;
|
|
189
192
|
get hasSavedPreferences(): boolean;
|
|
190
193
|
get showToolbar(): boolean;
|
|
191
194
|
expandSlicePanel(): void;
|
|
@@ -245,6 +248,7 @@ export declare class TableComponent<T = any> implements OnChanges, AfterContentI
|
|
|
245
248
|
get effectiveIsLoading(): boolean;
|
|
246
249
|
get isEmpty(): boolean;
|
|
247
250
|
get showPagination(): boolean;
|
|
251
|
+
get resolvedPaginationShowFirstLastButtons(): boolean;
|
|
248
252
|
get isColumnDragDropEnabled(): boolean;
|
|
249
253
|
get totalRows(): number;
|
|
250
254
|
onAddColumn(column: TableColumnProvider<T>): void;
|
|
@@ -311,6 +315,8 @@ export declare class TableComponent<T = any> implements OnChanges, AfterContentI
|
|
|
311
315
|
private _executeRender;
|
|
312
316
|
private _projectCurrentPage;
|
|
313
317
|
private buildEffectiveConfig;
|
|
318
|
+
private applyConfigSearchReset;
|
|
319
|
+
private applyInitialSearchQuery;
|
|
314
320
|
private static _hashColumns;
|
|
315
321
|
private resolveData;
|
|
316
322
|
private resolveColumnsFromCompat;
|
|
@@ -333,5 +339,5 @@ export declare class TableComponent<T = any> implements OnChanges, AfterContentI
|
|
|
333
339
|
private attachPaginator;
|
|
334
340
|
private attachSort;
|
|
335
341
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent<any>, never>;
|
|
336
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "jquery-table", never, { "config": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "columnsConfig": { "alias": "columnsConfig"; "required": false; }; "view": { "alias": "view"; "required": false; }; "columnLabels": { "alias": "columnLabels"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, { "addRequested": "addRequested"; "columnAdded": "columnAdded"; "columnRemoved": "columnRemoved"; "categorySelected": "categorySelected"; "rowSelected": "rowSelected"; "sortChange": "sortChange"; "pageChange": "pageChange"; "searchChange": "searchChange"; "groupByChange": "groupByChange"; "columnsChange": "columnsChange"; }, ["_cellDefs"], never, true, never>;
|
|
342
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent<any>, "jquery-table", never, { "config": { "alias": "config"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "data": { "alias": "data"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "columnsConfig": { "alias": "columnsConfig"; "required": false; }; "view": { "alias": "view"; "required": false; }; "columnLabels": { "alias": "columnLabels"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "clearSearchInput": { "alias": "clearSearchInput"; "required": false; }; }, { "addRequested": "addRequested"; "columnAdded": "columnAdded"; "columnRemoved": "columnRemoved"; "categorySelected": "categorySelected"; "rowSelected": "rowSelected"; "sortChange": "sortChange"; "pageChange": "pageChange"; "searchChange": "searchChange"; "groupByChange": "groupByChange"; "columnsChange": "columnsChange"; }, ["_cellDefs"], never, true, never>;
|
|
337
343
|
}
|
|
@@ -42,6 +42,7 @@ export interface TablePaginationConfig {
|
|
|
42
42
|
enabled?: boolean;
|
|
43
43
|
pageSize?: number;
|
|
44
44
|
pageSizeOptions?: number[];
|
|
45
|
+
showFirstLastButtons?: boolean;
|
|
45
46
|
/** Options de taille de page spécifiques au mode Group by. Si absent, utilise `pageSizeOptions`. */
|
|
46
47
|
pageSizeOptionsGroupBy?: number[];
|
|
47
48
|
}
|
|
@@ -133,6 +134,11 @@ export interface TableProvider<T = any> {
|
|
|
133
134
|
slices?: SliceConfig<T>[];
|
|
134
135
|
/** Affiche le bouton toggle pour replier/déplier le panneau de slices. Par défaut : `true`. */
|
|
135
136
|
enableSliceToggle?: boolean;
|
|
137
|
+
/**
|
|
138
|
+
* Permet de vider search bar depuis config
|
|
139
|
+
* Changez cette valeur (ex: route courante, compteur, timestamp) pour déclencher un reset.
|
|
140
|
+
*/
|
|
141
|
+
clearSearchInput?: string | number | boolean | null;
|
|
136
142
|
search?: TableSearchConfig;
|
|
137
143
|
pagination?: TablePaginationConfig;
|
|
138
144
|
view?: TableViewConfig;
|