@eternalcodestudio/primeng-table 20.0.13 → 20.0.15

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/index.d.ts CHANGED
@@ -153,6 +153,12 @@ interface IColumnMetadata {
153
153
  cellOverflowBehaviourAllowUserEdit: boolean;
154
154
  /** Initial width of the column in pixels. */
155
155
  initialWidth: number;
156
+ /** Optional date format override for this column. */
157
+ dateFormat: string | null;
158
+ /** Optional timezone override. */
159
+ dateTimezone: string | null;
160
+ /** Optional culture override. */
161
+ dateCulture: string | null;
156
162
  }
157
163
 
158
164
  /**
@@ -179,6 +185,14 @@ interface IPredefinedFilter {
179
185
  * Set to `true` to display the `name` as text in the cell.
180
186
  */
181
187
  displayName?: boolean;
188
+ /**
189
+ * Optional CSS style object to apply to the text when `displayName` is `true`.
190
+ *
191
+ * Example: { color: 'blue', fontWeight: 'bold', fontStyle: 'italic' }
192
+ */
193
+ nameStyle?: {
194
+ [key: string]: string;
195
+ };
182
196
  /**
183
197
  * Set to `true` to display the `name` as a tag in the cell.
184
198
  */
@@ -356,6 +370,8 @@ interface IExcelExportRequest extends ITableQueryRequest {
356
370
  applyFilters: boolean;
357
371
  /** Determines whether the current table sorting should be applied in the export. */
358
372
  applySorts: boolean;
373
+ /** If in bools we need to use icons or the underlying boolean value. */
374
+ useIconInBools: boolean;
359
375
  }
360
376
 
361
377
  /**
@@ -600,6 +616,13 @@ interface ITableOptions {
600
616
  * @default "pi pi-pen-to-square"
601
617
  */
602
618
  selectorIcon?: string;
619
+ /**
620
+ * When `true`, columns in the selector are displayed alphabetically (A–Z).
621
+ * When `false`, columns keep the order provided by the backend.
622
+ *
623
+ * @default true
624
+ */
625
+ selectorOrderByColumnName?: boolean;
603
626
  /**
604
627
  * The combination of non-selectable columns and user-selected columns
605
628
  * that must be displayed in the table.
@@ -884,6 +907,24 @@ interface ITableOptions {
884
907
  */
885
908
  urlSave?: string;
886
909
  };
910
+ /**
911
+ * Configurations related to the reset table view button.
912
+ */
913
+ resetTableView?: {
914
+ /**
915
+ * If the reset table view button should be enabled.
916
+ *
917
+ * @default true
918
+ */
919
+ enabled?: boolean;
920
+ /**
921
+ * Can be used to specifiy a different icon to be used by the reset table view button.
922
+ * You can replace it with any icon from PrimeNG or other libraries such as Font Awesome or Material Icons.
923
+ *
924
+ * @default "pi pi-eraser"
925
+ */
926
+ icon?: string;
927
+ };
887
928
  /**
888
929
  * Configurations for exporting the table data to Excel.
889
930
  */
@@ -1057,7 +1098,6 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit {
1057
1098
  showColumnSelector: boolean;
1058
1099
  selectedRowsCheckbox: any[];
1059
1100
  dt: Table;
1060
- showRefreshData: boolean;
1061
1101
  globalSearchText: string | null;
1062
1102
  tableViewsList: ITableView[];
1063
1103
  tableViews_menuItems: any[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalcodestudio/primeng-table",
3
- "version": "20.0.13",
3
+ "version": "20.0.15",
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",