@eternalcodestudio/primeng-table 21.0.0 → 21.0.2
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eternalcodestudio/primeng-table",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.2",
|
|
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",
|
|
@@ -159,6 +159,8 @@ interface IColumnMetadata {
|
|
|
159
159
|
dateTimezone: string | null;
|
|
160
160
|
/** Optional culture override. */
|
|
161
161
|
dateCulture: string | null;
|
|
162
|
+
/** Optional date format for exports override for this column. */
|
|
163
|
+
exportDateFormat: string | null;
|
|
162
164
|
}
|
|
163
165
|
|
|
164
166
|
/**
|
|
@@ -299,10 +301,9 @@ interface ITableButton {
|
|
|
299
301
|
*/
|
|
300
302
|
variant?: string;
|
|
301
303
|
/**
|
|
302
|
-
* Optional.
|
|
303
|
-
* Example: "p-button-success" or "custom-class".
|
|
304
|
+
* Optional. Extra CSS classes to apply to the button.
|
|
304
305
|
*/
|
|
305
|
-
|
|
306
|
+
class?: string;
|
|
306
307
|
/**
|
|
307
308
|
* Optional. Additional inline CSS styles for the button.
|
|
308
309
|
*/
|
|
@@ -365,6 +366,8 @@ interface ITableQueryRequest {
|
|
|
365
366
|
dateTimezone: string;
|
|
366
367
|
/** The culture/locale used for formatting dates and numbers. */
|
|
367
368
|
dateCulture: string;
|
|
369
|
+
/** The date format used in exports. */
|
|
370
|
+
exportDateFormat: string;
|
|
368
371
|
}
|
|
369
372
|
|
|
370
373
|
/**
|
|
@@ -406,6 +409,8 @@ interface ITableConfiguration {
|
|
|
406
409
|
dateCulture: string;
|
|
407
410
|
/** Maximum number of table views that can be saved or tracked. */
|
|
408
411
|
maxViews: number;
|
|
412
|
+
/** The format used for displaying dates in the exports. */
|
|
413
|
+
exportDateFormat: string;
|
|
409
414
|
}
|
|
410
415
|
|
|
411
416
|
/**
|
|
@@ -550,24 +555,15 @@ interface ITableOptions {
|
|
|
550
555
|
*/
|
|
551
556
|
content?: string;
|
|
552
557
|
/**
|
|
553
|
-
* Configuration options for the button
|
|
558
|
+
* Configuration options for the legend button.
|
|
559
|
+
*
|
|
560
|
+
* @default {
|
|
561
|
+
* icon: "pi pi-bars",
|
|
562
|
+
* label: "Legend",
|
|
563
|
+
* color: "p-button-primary"
|
|
564
|
+
* }
|
|
554
565
|
*/
|
|
555
|
-
button?:
|
|
556
|
-
/**
|
|
557
|
-
* Icon displayed alongside the button of the table legend.
|
|
558
|
-
* You can use any PrimeIcons class or icons from third-party libraries
|
|
559
|
-
* such as Material Icons or Font Awesome.
|
|
560
|
-
*
|
|
561
|
-
* @default "pi pi-bars"
|
|
562
|
-
*/
|
|
563
|
-
icon?: string;
|
|
564
|
-
/**
|
|
565
|
-
* The text shown in the legend button.
|
|
566
|
-
*
|
|
567
|
-
* @default "Legend"
|
|
568
|
-
*/
|
|
569
|
-
text?: string;
|
|
570
|
-
};
|
|
566
|
+
button?: ITableButton;
|
|
571
567
|
};
|
|
572
568
|
/**
|
|
573
569
|
* Configurations related to options that are at the header of the table.
|
|
@@ -715,7 +711,7 @@ interface ITableOptions {
|
|
|
715
711
|
*
|
|
716
712
|
* @default true
|
|
717
713
|
*/
|
|
718
|
-
|
|
714
|
+
positionRight?: boolean;
|
|
719
715
|
/**
|
|
720
716
|
* The fixed column width in pixels.
|
|
721
717
|
*
|
|
@@ -734,6 +730,18 @@ interface ITableOptions {
|
|
|
734
730
|
* @default false
|
|
735
731
|
*/
|
|
736
732
|
resizable?: boolean;
|
|
733
|
+
/**
|
|
734
|
+
* How the items inside the action column are horizontally aligned.
|
|
735
|
+
*
|
|
736
|
+
* @default DataAlignHorizontal.Center
|
|
737
|
+
*/
|
|
738
|
+
horizontalAlignment?: DataAlignHorizontal;
|
|
739
|
+
/**
|
|
740
|
+
* How the items inside the action column are vertically aligned.
|
|
741
|
+
*
|
|
742
|
+
* @default DataAlignVertical.Middle
|
|
743
|
+
*/
|
|
744
|
+
verticalAlignment?: DataAlignVertical;
|
|
737
745
|
};
|
|
738
746
|
/**
|
|
739
747
|
* Configurations related to the row checkbox selector.
|
|
@@ -756,7 +764,7 @@ interface ITableOptions {
|
|
|
756
764
|
*
|
|
757
765
|
* @default false
|
|
758
766
|
*/
|
|
759
|
-
|
|
767
|
+
positionRight?: boolean;
|
|
760
768
|
/**
|
|
761
769
|
* The fixed column width in pixels.
|
|
762
770
|
*
|
|
@@ -783,6 +791,18 @@ interface ITableOptions {
|
|
|
783
791
|
* @default undefined
|
|
784
792
|
*/
|
|
785
793
|
enabledCondition?: (rowData: any) => boolean;
|
|
794
|
+
/**
|
|
795
|
+
* How the checkbox inside the selector column is horizontally aligned.
|
|
796
|
+
*
|
|
797
|
+
* @default DataAlignHorizontal.Center
|
|
798
|
+
*/
|
|
799
|
+
horizontalAlignment?: DataAlignHorizontal;
|
|
800
|
+
/**
|
|
801
|
+
* How the checkbox inside the selector column is vertically aligned.
|
|
802
|
+
*
|
|
803
|
+
* @default DataAlignVertical.Middle
|
|
804
|
+
*/
|
|
805
|
+
verticalAlignment?: DataAlignVertical;
|
|
786
806
|
};
|
|
787
807
|
/**
|
|
788
808
|
* Configurations related to the single row selector.
|
|
@@ -919,6 +939,32 @@ interface ITableOptions {
|
|
|
919
939
|
* @default undefined
|
|
920
940
|
*/
|
|
921
941
|
urlSave?: string;
|
|
942
|
+
/**
|
|
943
|
+
* A collection of custom CSS classes to apply to the button that opens the views menu.
|
|
944
|
+
* Multiple classes can be provided as a space-separated string.
|
|
945
|
+
*
|
|
946
|
+
* @default undefined
|
|
947
|
+
*/
|
|
948
|
+
selectViewButtonClass?: string;
|
|
949
|
+
/**
|
|
950
|
+
* CSS classes to apply to the button used to reapply a view.
|
|
951
|
+
* Multiple classes can be provided as a space-separated string.
|
|
952
|
+
*
|
|
953
|
+
* @default undefined
|
|
954
|
+
*/
|
|
955
|
+
reloadViewButtonClass?: string;
|
|
956
|
+
/**
|
|
957
|
+
* The icon that the reapply view button has.
|
|
958
|
+
*
|
|
959
|
+
* @default "pi pi-refresh"
|
|
960
|
+
*/
|
|
961
|
+
reloadViewButtonIcon?: string;
|
|
962
|
+
/**
|
|
963
|
+
* The text that is displayed when no view is selected.
|
|
964
|
+
*
|
|
965
|
+
* @default "--- Select a view ---"
|
|
966
|
+
*/
|
|
967
|
+
noViewSelectedText?: string;
|
|
922
968
|
};
|
|
923
969
|
/**
|
|
924
970
|
* Configurations related to the reset table view button.
|
|
@@ -1129,6 +1175,7 @@ declare class ECSPrimengTable implements OnInit, AfterViewInit {
|
|
|
1129
1175
|
dateFormat: string;
|
|
1130
1176
|
dateTimezone: string;
|
|
1131
1177
|
dateCulture: string;
|
|
1178
|
+
exportDateFormat: string;
|
|
1132
1179
|
columns: IColumnMetadata[];
|
|
1133
1180
|
columnsCantBeHidden: IColumnMetadata[];
|
|
1134
1181
|
columnsSelected: IColumnMetadata[];
|