@eternalcodestudio/primeng-table 20.0.5 → 20.0.6

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
@@ -20,32 +20,69 @@ declare abstract class ECSPrimengTableNotificationService {
20
20
  }
21
21
 
22
22
  /**
23
- * Interface representing the configuration for action buttons in a PrimeNG table.
23
+ * Interface representing a table action button, applicable for both header and row buttons.
24
24
  */
25
25
  interface ITableButton {
26
26
  /**
27
- * Gets or sets the icon to be displayed on the button.
28
- * The value should be a string representing the PrimeIcons class name.
27
+ * Optional. The icon to display on the button.
28
+ * Should be a valid icon name from PrimeNG, Material Icons, Font Awesome, or similar libraries.
29
29
  */
30
30
  icon?: string;
31
+ /**
32
+ * Optional. The position of the icon relative to the button label.
33
+ * Defaults to "left". Possible values are:
34
+ * - "left"
35
+ * - "right"
36
+ * - "top"
37
+ * - "bottom"
38
+ */
39
+ iconPos?: string;
40
+ /**
41
+ * Optional. The text label displayed on the button.
42
+ */
31
43
  label?: string;
32
44
  /**
33
- * Gets or sets the color style class to be applied to the button.
34
- * The value should be a string representing a CSS class for styling the button.
45
+ * Optional. If true, the button will be round. Defaults to false.
46
+ */
47
+ rounded?: boolean;
48
+ /**
49
+ * Optional. If true, adds a shadow to indicate elevation. Defaults to false.
50
+ */
51
+ raised?: boolean;
52
+ /**
53
+ * Optional. Specifies the variant of the button.
54
+ * Can be null (default), "text", or "outlined".
55
+ */
56
+ variant?: string;
57
+ /**
58
+ * Optional. The CSS class to apply for button styling.
59
+ * Example: "p-button-success" or "custom-class".
35
60
  */
36
61
  color?: string;
37
62
  /**
38
- * Gets or sets the condition for displaying the button.
39
- * It is a function that takes row data as input and returns a boolean indicating
40
- * whether the button should be displayed for that row.
63
+ * Optional. Additional inline CSS styles for the button.
64
+ */
65
+ style?: string;
66
+ /**
67
+ * Optional. Function that determines whether the button should be displayed for a given row.
68
+ * @param rowData The row data object. Null for header buttons.
69
+ * @returns True if the button should be visible; false otherwise.
41
70
  */
42
71
  condition?: (rowData: any) => boolean;
43
72
  /**
44
- * Represents the action to be executed when the button is clicked.
45
- * This function takes the row data of the clicked row as input and performs
46
- * specific actions based on that data.
73
+ * Optional. Controls behavior when `condition` returns false.
74
+ * - If `true`, the button will be hidden when the condition is not met.
75
+ * - If `false` or `undefined`, the button will remain visible but disabled.
76
+ */
77
+ conditionFailHide?: boolean;
78
+ /**
79
+ * Optional. The action to execute when the button is clicked.
80
+ * @param rowData The row data object of the clicked row. Null for header buttons.
47
81
  */
48
82
  action?: (rowData: any) => void;
83
+ /**
84
+ * Optional. Tooltip text to display when the user hovers over the button.
85
+ */
49
86
  tooltip?: string;
50
87
  }
51
88
 
@@ -668,7 +705,7 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit {
668
705
  calculateScrollHeight(): void;
669
706
  get scrollHeightValue(): string;
670
707
  /**
671
- * Used to update the data of a table externally outside the component. Use this method instead of 'updateData' to force the data updata of a table
708
+ * Used to update the data of a table externally outside the component.
672
709
  *
673
710
  */
674
711
  updateData(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eternalcodestudio/primeng-table",
3
- "version": "20.0.5",
3
+ "version": "20.0.6",
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",