@competer/primeng-table 0.0.0-stage → 14.2.0
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/README.md +279 -3
- package/esm2020/competer-primeng-table.mjs +5 -0
- package/esm2020/lib/components/column-selector/column-selector.mjs +147 -0
- package/esm2020/lib/components/ecs-primeng-table/ecs-primeng-table.mjs +1411 -0
- package/esm2020/lib/components/ecs-primeng-table/ecs-primeng-table.service.mjs +222 -0
- package/esm2020/lib/components/export-excel/export-excel.mjs +153 -0
- package/esm2020/lib/components/export-excel/export-excel.service.mjs +23 -0
- package/esm2020/lib/components/table-button/table-button.mjs +63 -0
- package/esm2020/lib/components/table-cell/table-cell.mjs +159 -0
- package/esm2020/lib/components/table-predefined-filters/table-predefined-filters.mjs +94 -0
- package/esm2020/lib/components/views-management/views-management.mjs +117 -0
- package/esm2020/lib/enums/cell-display.enum.mjs +7 -0
- package/esm2020/lib/enums/cell-overflow-behaviour.enum.mjs +14 -0
- package/esm2020/lib/enums/data-align-horizontal.enum.mjs +16 -0
- package/esm2020/lib/enums/data-align-vertical.enum.mjs +16 -0
- package/esm2020/lib/enums/data-type.enum.enum.mjs +21 -0
- package/esm2020/lib/enums/device-type.enum.mjs +8 -0
- package/esm2020/lib/enums/frozen-column-align.enum.mjs +17 -0
- package/esm2020/lib/enums/index.mjs +9 -0
- package/esm2020/lib/enums/table-view-save-mode.enum.mjs +19 -0
- package/esm2020/lib/interfaces/columns-metadata.interface.mjs +2 -0
- package/esm2020/lib/interfaces/excel-export-request.interface.mjs +2 -0
- package/esm2020/lib/interfaces/index.mjs +11 -0
- package/esm2020/lib/interfaces/predefined-filter.interface.mjs +2 -0
- package/esm2020/lib/interfaces/table-button.interface.mjs +2 -0
- package/esm2020/lib/interfaces/table-configuration.interface.mjs +2 -0
- package/esm2020/lib/interfaces/table-options.interface.mjs +107 -0
- package/esm2020/lib/interfaces/table-paged-response.interface.mjs +2 -0
- package/esm2020/lib/interfaces/table-query-request.interface.mjs +2 -0
- package/esm2020/lib/interfaces/table-view-data.interface.mjs +2 -0
- package/esm2020/lib/interfaces/table-view.interface.mjs +2 -0
- package/esm2020/lib/pipes/ui-translate.pipe.mjs +21 -0
- package/esm2020/lib/services/http.service.mjs +18 -0
- package/esm2020/lib/services/i18n.service.mjs +61 -0
- package/esm2020/lib/services/index.mjs +5 -0
- package/esm2020/lib/services/notification.service.mjs +17 -0
- package/esm2020/lib/services/table-state.service.mjs +38 -0
- package/esm2020/lib/utils/create-table-options.mjs +37 -0
- package/esm2020/lib/utils/data-align-horizontal-as-text.mjs +23 -0
- package/esm2020/lib/utils/data-align-vertical-as-text.mjs +23 -0
- package/esm2020/lib/utils/data-type-as-text.mjs +25 -0
- package/esm2020/lib/utils/frozen-column-align-as-text.mjs +21 -0
- package/esm2020/lib/utils/highlight-text.mjs +36 -0
- package/esm2020/lib/utils/index.mjs +7 -0
- package/esm2020/lib/utils/tree-table-state.mjs +239 -0
- package/esm2020/public-api.mjs +19 -0
- package/fesm2015/competer-primeng-table.mjs +3119 -0
- package/fesm2015/competer-primeng-table.mjs.map +1 -0
- package/fesm2020/competer-primeng-table.mjs +3049 -0
- package/fesm2020/competer-primeng-table.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/column-selector/column-selector.d.ts +55 -0
- package/lib/components/ecs-primeng-table/ecs-primeng-table.d.ts +256 -0
- package/lib/components/ecs-primeng-table/ecs-primeng-table.service.d.ts +52 -0
- package/lib/components/export-excel/export-excel.d.ts +51 -0
- package/lib/components/export-excel/export-excel.service.d.ts +6 -0
- package/lib/components/table-button/table-button.d.ts +16 -0
- package/lib/components/table-cell/table-cell.d.ts +69 -0
- package/lib/components/table-predefined-filters/table-predefined-filters.d.ts +39 -0
- package/lib/components/views-management/views-management.d.ts +34 -0
- package/lib/enums/cell-display.enum.d.ts +5 -0
- package/lib/enums/cell-overflow-behaviour.enum.d.ts +12 -0
- package/lib/enums/data-align-horizontal.enum.d.ts +14 -0
- package/lib/enums/data-align-vertical.enum.d.ts +14 -0
- package/lib/enums/data-type.enum.enum.d.ts +19 -0
- package/lib/enums/device-type.enum.d.ts +6 -0
- package/lib/enums/frozen-column-align.enum.d.ts +15 -0
- package/lib/enums/index.d.ts +8 -0
- package/lib/enums/table-view-save-mode.enum.d.ts +17 -0
- package/lib/interfaces/columns-metadata.interface.d.ts +66 -0
- package/lib/interfaces/excel-export-request.interface.d.ts +20 -0
- package/lib/interfaces/index.d.ts +10 -0
- package/lib/interfaces/predefined-filter.interface.d.ts +101 -0
- package/lib/interfaces/table-button.interface.d.ts +75 -0
- package/lib/interfaces/table-configuration.interface.d.ts +23 -0
- package/lib/interfaces/table-options.interface.d.ts +604 -0
- package/lib/interfaces/table-paged-response.interface.d.ts +16 -0
- package/lib/interfaces/table-query-request.interface.d.ts +28 -0
- package/lib/interfaces/table-view-data.interface.d.ts +28 -0
- package/lib/interfaces/table-view.interface.d.ts +15 -0
- package/lib/pipes/ui-translate.pipe.d.ts +13 -0
- package/lib/services/http.service.d.ts +34 -0
- package/lib/services/i18n.service.d.ts +20 -0
- package/lib/services/index.d.ts +4 -0
- package/lib/services/notification.service.d.ts +23 -0
- package/lib/services/table-state.service.d.ts +31 -0
- package/lib/utils/create-table-options.d.ts +5 -0
- package/lib/utils/data-align-horizontal-as-text.d.ts +11 -0
- package/lib/utils/data-align-vertical-as-text.d.ts +11 -0
- package/lib/utils/data-type-as-text.d.ts +11 -0
- package/lib/utils/frozen-column-align-as-text.d.ts +11 -0
- package/lib/utils/highlight-text.d.ts +17 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/tree-table-state.d.ts +66 -0
- package/package.json +58 -3
- package/public-api.d.ts +10 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the alignment of frozen columns in a table.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Used to determine if a column should be frozen, and if so, on which side
|
|
6
|
+
* of the table it should appear.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum FrozenColumnAlign {
|
|
9
|
+
/** The column is not frozen. */
|
|
10
|
+
Noone = 0,
|
|
11
|
+
/** The column is frozen on the left side of the table. */
|
|
12
|
+
Left = 1,
|
|
13
|
+
/** The column is frozen on the right side of the table. */
|
|
14
|
+
Right = 2
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from "./cell-overflow-behaviour.enum";
|
|
2
|
+
export * from "./data-align-horizontal.enum";
|
|
3
|
+
export * from "./data-align-vertical.enum";
|
|
4
|
+
export * from "./data-type.enum.enum";
|
|
5
|
+
export * from "./frozen-column-align.enum";
|
|
6
|
+
export * from "./table-view-save-mode.enum";
|
|
7
|
+
export * from "./device-type.enum";
|
|
8
|
+
export * from "./cell-display.enum";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Enum representing the mode used to save the state or configuration of a table view.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* Determines where and how the table's view settings (e.g., column order, filters,
|
|
6
|
+
* sorting) are persisted.
|
|
7
|
+
*/
|
|
8
|
+
export declare enum TableViewSaveMode {
|
|
9
|
+
/** Views are disabled. */
|
|
10
|
+
None = 0,
|
|
11
|
+
/** Save the table view state in the browser's sessionStorage (cleared on tab close). */
|
|
12
|
+
SessionStorage = 1,
|
|
13
|
+
/** Save the table view state in the browser's localStorage (persists across sessions). */
|
|
14
|
+
LocalStorage = 2,
|
|
15
|
+
/** Save the table view state in a backend database (requires server support). */
|
|
16
|
+
DatabaseStorage = 3
|
|
17
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { CellDisplay, DeviceType, CellOverflowBehaviour, DataAlignHorizontal, DataAlignVertical, DataType, FrozenColumnAlign } from "../enums";
|
|
2
|
+
/**
|
|
3
|
+
* Represents the metadata for a column in a table.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Provides configuration for column behavior, appearance, and user interactions.
|
|
7
|
+
*/
|
|
8
|
+
export interface IColumnMetadata {
|
|
9
|
+
/** The key or identifier for the column's data field. */
|
|
10
|
+
field: string;
|
|
11
|
+
/** Display name or ngx-translate key. Translated only for display; field and metadata are preserved. */
|
|
12
|
+
header: string;
|
|
13
|
+
headerGroup?: string | null;
|
|
14
|
+
/** The type of data contained in the column. */
|
|
15
|
+
dataType: DataType;
|
|
16
|
+
/** Optional presentation; ProgressBar renders numeric values on a 0–100 scale. */
|
|
17
|
+
cellDisplay?: CellDisplay;
|
|
18
|
+
/** The horizontal alignment of the column content. */
|
|
19
|
+
dataAlignHorizontal: DataAlignHorizontal;
|
|
20
|
+
/** Indicates whether the horizontal alignment can be modified by the user. */
|
|
21
|
+
dataAlignHorizontalAllowUserEdit: boolean;
|
|
22
|
+
/** The vertical alignment of the column content. */
|
|
23
|
+
dataAlignVertical: DataAlignVertical;
|
|
24
|
+
/** Indicates whether the vertical alignment can be modified by the user. */
|
|
25
|
+
dataAlignVerticalAllowUserEdit: boolean;
|
|
26
|
+
/** Determines if the column can be hidden. */
|
|
27
|
+
canBeHidden: boolean;
|
|
28
|
+
/** Determines if the column should initially be hidden. */
|
|
29
|
+
startHidden: boolean;
|
|
30
|
+
/** Optional initial visibility. Empty/omitted preserves startHidden; mandatory columns remain visible. */
|
|
31
|
+
visibleOnlyIn?: DeviceType[] | null;
|
|
32
|
+
/** Determines if the column can be resized by the user. */
|
|
33
|
+
canBeResized: boolean;
|
|
34
|
+
/** Determines if the column can be reordered by the user. */
|
|
35
|
+
canBeReordered: boolean;
|
|
36
|
+
/** Determines if the column can be sorted. */
|
|
37
|
+
canBeSorted: boolean;
|
|
38
|
+
/** Determines if the column can be filtered. */
|
|
39
|
+
canBeFiltered: boolean;
|
|
40
|
+
/** Name of predefined filter values, if any. */
|
|
41
|
+
filterPredefinedValuesName: string;
|
|
42
|
+
/** Determines if the column can be included in global filtering. */
|
|
43
|
+
canBeGlobalFiltered: boolean;
|
|
44
|
+
/** Description or tooltip text for the column. */
|
|
45
|
+
columnDescription: string;
|
|
46
|
+
/** Determines if a tooltip should be shown for the column data. */
|
|
47
|
+
dataTooltipShow: boolean;
|
|
48
|
+
/** Custom source for the tooltip content, if applicable. */
|
|
49
|
+
dataTooltipCustomColumnSource: string;
|
|
50
|
+
/** Alignment for frozen columns (left or right). */
|
|
51
|
+
frozenColumnAlign: FrozenColumnAlign;
|
|
52
|
+
/** Specifies how overflowing content is handled within the cell. */
|
|
53
|
+
cellOverflowBehaviour: CellOverflowBehaviour;
|
|
54
|
+
/** Indicates whether the cell overflow behavior can be modified by the user. */
|
|
55
|
+
cellOverflowBehaviourAllowUserEdit: boolean;
|
|
56
|
+
/** Initial width of the column in pixels. */
|
|
57
|
+
initialWidth: number;
|
|
58
|
+
/** Optional date format override for this column. */
|
|
59
|
+
dateFormat: string | null;
|
|
60
|
+
/** Optional timezone override. */
|
|
61
|
+
dateTimezone: string | null;
|
|
62
|
+
/** Optional culture override. */
|
|
63
|
+
dateCulture: string | null;
|
|
64
|
+
/** Optional date format for exports override for this column. */
|
|
65
|
+
exportDateFormat: string | null;
|
|
66
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ITableQueryRequest } from "./table-query-request.interface";
|
|
2
|
+
/**
|
|
3
|
+
* Represents the request parameters for exporting table data to Excel.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Extends `ITableQueryRequest` to include Excel-specific options such as filename,
|
|
7
|
+
* column selection, and whether to apply current filters and sorts.
|
|
8
|
+
*/
|
|
9
|
+
export interface IExcelExportRequest extends ITableQueryRequest {
|
|
10
|
+
/** The desired name of the exported Excel file. */
|
|
11
|
+
filename: string;
|
|
12
|
+
/** Determines whether all columns should be included in the export. */
|
|
13
|
+
allColumns: boolean;
|
|
14
|
+
/** Determines whether the current table filters should be applied in the export. */
|
|
15
|
+
applyFilters: boolean;
|
|
16
|
+
/** Determines whether the current table sorting should be applied in the export. */
|
|
17
|
+
applySorts: boolean;
|
|
18
|
+
/** If in bools we need to use icons or the underlying boolean value. */
|
|
19
|
+
useIconInBools: boolean;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./table-button.interface";
|
|
2
|
+
export * from "./excel-export-request.interface";
|
|
3
|
+
export * from "./columns-metadata.interface";
|
|
4
|
+
export * from "./predefined-filter.interface";
|
|
5
|
+
export * from "./table-configuration.interface";
|
|
6
|
+
export * from "./table-options.interface";
|
|
7
|
+
export * from "./table-paged-response.interface";
|
|
8
|
+
export * from "./table-query-request.interface";
|
|
9
|
+
export * from "./table-view-data.interface";
|
|
10
|
+
export * from "./table-view.interface";
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a predefined filter value for a column in **ECS PrimeNG table**.
|
|
3
|
+
*
|
|
4
|
+
* Allows displaying a value as text, tag, icon or image (from URL or blob) with optional styles and colors.
|
|
5
|
+
*/
|
|
6
|
+
export interface IPredefinedFilter {
|
|
7
|
+
/**
|
|
8
|
+
* The underlying value of the cell. Must match the data returned from the backend for proper filtering and mapping.
|
|
9
|
+
*
|
|
10
|
+
* This is also used by the global filter internally.
|
|
11
|
+
*
|
|
12
|
+
* **IMPORTANT**: For text and tag representations, it is recommended that `value` matches `name`.
|
|
13
|
+
*/
|
|
14
|
+
value: string | number;
|
|
15
|
+
/**
|
|
16
|
+
* The text displayed in the frontend for this filter value.
|
|
17
|
+
*
|
|
18
|
+
* Used when `displayName` is `true` or when displaying a tag.
|
|
19
|
+
*/
|
|
20
|
+
name?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Set to `true` to display the `name` as text in the cell.
|
|
23
|
+
*/
|
|
24
|
+
displayName?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* Optional CSS style object to apply to the text when `displayName` is `true`.
|
|
27
|
+
*
|
|
28
|
+
* Example: { color: 'blue', fontWeight: 'bold', fontStyle: 'italic' }
|
|
29
|
+
*/
|
|
30
|
+
nameStyle?: {
|
|
31
|
+
[key: string]: string;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Set to `true` to display the `name` as a tag in the cell.
|
|
35
|
+
*/
|
|
36
|
+
displayTag?: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Optional CSS style object to apply to the tag.
|
|
39
|
+
*
|
|
40
|
+
* Example: { background: 'rgb(255,0,0)', color: 'white' }
|
|
41
|
+
*/
|
|
42
|
+
tagStyle?: {
|
|
43
|
+
[key: string]: string;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* The icon to display for this value.
|
|
47
|
+
*
|
|
48
|
+
* Can use icons from PrimeNG, Font Awesome, Material Icons, etc...
|
|
49
|
+
*/
|
|
50
|
+
icon?: string;
|
|
51
|
+
/**
|
|
52
|
+
* Optional color to apply to the icon.
|
|
53
|
+
*
|
|
54
|
+
* Example: "red", "#00ff00"
|
|
55
|
+
*/
|
|
56
|
+
iconColor?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Optional CSS style string to apply to the icon.
|
|
59
|
+
*
|
|
60
|
+
* Example: "font-size: 1.5rem" "margin-right: 0.5rem"
|
|
61
|
+
*/
|
|
62
|
+
iconStyle?: string;
|
|
63
|
+
/**
|
|
64
|
+
* The image to display directly from a URL.
|
|
65
|
+
*/
|
|
66
|
+
imageURL?: string;
|
|
67
|
+
/**
|
|
68
|
+
* The image to display from a Blob object.
|
|
69
|
+
*/
|
|
70
|
+
imageBlob?: Blob;
|
|
71
|
+
/**
|
|
72
|
+
* If using a Blob and it is not provided directly, the backend endpoint to fetch the Blob from.
|
|
73
|
+
*/
|
|
74
|
+
imageBlobSourceEndpoint?: string;
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
* Indicates that fetching the Blob from `imageBlobSourceEndpoint` failed.
|
|
78
|
+
*
|
|
79
|
+
* **_Do not modify this property manually._**
|
|
80
|
+
*/
|
|
81
|
+
imageBlobFetchError?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Optional width of the image (and skeleton) in pixels.
|
|
84
|
+
*
|
|
85
|
+
* If the value is <= 0 or undefined, the width will not be applied.
|
|
86
|
+
*/
|
|
87
|
+
imageWidth?: number;
|
|
88
|
+
/**
|
|
89
|
+
* Optional height of the image (and skeleton) in pixels.
|
|
90
|
+
*
|
|
91
|
+
* If the value is <= 0 or undefined, the height will not be applied.
|
|
92
|
+
* If no value is specified, a default value of 22px will be used.
|
|
93
|
+
*/
|
|
94
|
+
imageHeight?: number;
|
|
95
|
+
/**
|
|
96
|
+
* Optional. The action to execute when the predefined filter is clicked.
|
|
97
|
+
* @param rowData The row data object of the clicked row.
|
|
98
|
+
* @param option The IPredefinedFilter data of the predefined element clicked.
|
|
99
|
+
*/
|
|
100
|
+
action?: (rowData: any, option: IPredefinedFilter) => void;
|
|
101
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Interface representing a table action button, applicable for both header and row buttons.
|
|
3
|
+
*/
|
|
4
|
+
export interface ITableButton {
|
|
5
|
+
/**
|
|
6
|
+
* Optional. The icon to display on the button.
|
|
7
|
+
* Should be a valid icon name from PrimeNG, Material Icons, Font Awesome, or similar libraries.
|
|
8
|
+
*/
|
|
9
|
+
icon?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Optional. The position of the icon relative to the button label.
|
|
12
|
+
* Defaults to "left". Possible values are:
|
|
13
|
+
* - "left"
|
|
14
|
+
* - "right"
|
|
15
|
+
* - "top"
|
|
16
|
+
* - "bottom"
|
|
17
|
+
*/
|
|
18
|
+
iconPos?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional. The text label displayed on the button.
|
|
21
|
+
*/
|
|
22
|
+
label?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Optional. If true, the button will be round. Defaults to false.
|
|
25
|
+
*/
|
|
26
|
+
rounded?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Optional. If true, adds a shadow to indicate elevation. Defaults to false.
|
|
29
|
+
*/
|
|
30
|
+
raised?: boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Optional. Specifies the variant of the button.
|
|
33
|
+
* Can be null (default), "text", or "outlined".
|
|
34
|
+
*/
|
|
35
|
+
variant?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional. Extra CSS classes to apply to the button.
|
|
38
|
+
*/
|
|
39
|
+
class?: string;
|
|
40
|
+
/**
|
|
41
|
+
* Optional. Additional inline CSS styles for the button.
|
|
42
|
+
*/
|
|
43
|
+
style?: string;
|
|
44
|
+
/**
|
|
45
|
+
* Optional. Function that determines whether the button should be visible for a given row.
|
|
46
|
+
* @param rowData The row data object. Null for header buttons.
|
|
47
|
+
* @returns True if the button should be visible; false otherwise.
|
|
48
|
+
*/
|
|
49
|
+
visibleCondition?: (rowData: any) => boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Optional. Function that determines whether the button should be displayed for a given row.
|
|
52
|
+
*
|
|
53
|
+
* Ignored if `visibleCondition` returns false.
|
|
54
|
+
* @param rowData The row data object. Null for header buttons.
|
|
55
|
+
* @returns True if the button should be enabled; false otherwise.
|
|
56
|
+
*/
|
|
57
|
+
enabledCondition?: (rowData: any) => boolean;
|
|
58
|
+
/**
|
|
59
|
+
* Optional. Controls behavior when `enabledCondition` returns false.
|
|
60
|
+
* - If `true`, the button will be hidden when the 'enabledCondition' is not met.
|
|
61
|
+
* - If `false` or `undefined`, the button will remain visible but disabled if 'enabledCondition' is not met.
|
|
62
|
+
*
|
|
63
|
+
* Ignored if `visibleCondition` returns false.
|
|
64
|
+
*/
|
|
65
|
+
conditionFailHide?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Optional. The action to execute when the button is clicked.
|
|
68
|
+
* @param rowData The row data object of the clicked row. Null for header buttons.
|
|
69
|
+
*/
|
|
70
|
+
action?: (rowData: any) => void;
|
|
71
|
+
/**
|
|
72
|
+
* Optional. Tooltip text to display when the user hovers over the button.
|
|
73
|
+
*/
|
|
74
|
+
tooltip?: string;
|
|
75
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IColumnMetadata } from "../interfaces";
|
|
2
|
+
/**
|
|
3
|
+
* Represents the configuration settings for a table.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Contains column definitions, pagination options, date formatting, and other table-related settings.
|
|
7
|
+
*/
|
|
8
|
+
export interface ITableConfiguration {
|
|
9
|
+
/** Array of metadata objects defining each column in the table. */
|
|
10
|
+
columnsInfo: IColumnMetadata[];
|
|
11
|
+
/** Allowed options for the number of items displayed per page. */
|
|
12
|
+
allowedItemsPerPage: number[];
|
|
13
|
+
/** The format used for displaying dates in the table. */
|
|
14
|
+
dateFormat: string;
|
|
15
|
+
/** The timezone applied when formatting date values. */
|
|
16
|
+
dateTimezone: string;
|
|
17
|
+
/** The culture/locale used for date and number formatting. */
|
|
18
|
+
dateCulture: string;
|
|
19
|
+
/** Maximum number of table views that can be saved or tracked. */
|
|
20
|
+
maxViews: number;
|
|
21
|
+
/** The format used for displaying dates in the exports. */
|
|
22
|
+
exportDateFormat: string;
|
|
23
|
+
}
|