@eternalcodestudio/primeng-table 19.0.3 → 19.0.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.
@@ -31,7 +31,6 @@ export declare class ECSPrimengTable implements OnInit, AfterViewInit {
31
31
  showColumnSelector: boolean;
32
32
  selectedRowsCheckbox: any[];
33
33
  dt: Table;
34
- showRefreshData: boolean;
35
34
  globalSearchText: string | null;
36
35
  tableViewsList: ITableView[];
37
36
  tableViews_menuItems: any[];
@@ -164,6 +164,13 @@ export interface ITableOptions {
164
164
  * @default "pi pi-pen-to-square"
165
165
  */
166
166
  selectorIcon?: string;
167
+ /**
168
+ * When `true`, columns in the selector are displayed alphabetically (A–Z).
169
+ * When `false`, columns keep the order provided by the backend.
170
+ *
171
+ * @default true
172
+ */
173
+ selectorOrderByColumnName?: boolean;
167
174
  /**
168
175
  * The combination of non-selectable columns and user-selected columns
169
176
  * that must be displayed in the table.
@@ -448,6 +455,24 @@ export interface ITableOptions {
448
455
  */
449
456
  urlSave?: string;
450
457
  };
458
+ /**
459
+ * Configurations related to the reset table view button.
460
+ */
461
+ resetTableView?: {
462
+ /**
463
+ * If the reset table view button should be enabled.
464
+ *
465
+ * @default true
466
+ */
467
+ enabled?: boolean;
468
+ /**
469
+ * Can be used to specifiy a different icon to be used by the reset table view button.
470
+ * You can replace it with any icon from PrimeNG or other libraries such as Font Awesome or Material Icons.
471
+ *
472
+ * @default "pi pi-eraser"
473
+ */
474
+ icon?: string;
475
+ };
451
476
  /**
452
477
  * Configurations for exporting the table data to Excel.
453
478
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalcodestudio/primeng-table",
3
- "version": "19.0.3",
3
+ "version": "19.0.4",
4
4
  "description": "ECS reusable Angular PrimeNG table component with advanced server-side filters. Designed to offload filtering logic to any backend API.",
5
5
  "author": "ECS (Eternal CODE Studio)",
6
6
  "license": "MIT",