@m4l/components 0.1.11 → 0.1.12
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.
|
@@ -388,7 +388,7 @@ const ColumnsConfig = forwardRef((props, ref) => {
|
|
|
388
388
|
name: getLabel("data_grid.settings_column_name"),
|
|
389
389
|
width: 200,
|
|
390
390
|
resizable: true,
|
|
391
|
-
type: "
|
|
391
|
+
type: "string"
|
|
392
392
|
}, {
|
|
393
393
|
key: "originalIndex",
|
|
394
394
|
name: getLabel("data_grid.settings_column_position"),
|
|
@@ -661,9 +661,9 @@ function SkeletonFormatter() {
|
|
|
661
661
|
}
|
|
662
662
|
function getComparator(columns, sortColumn) {
|
|
663
663
|
const column = columns.find((d) => d.key === sortColumn);
|
|
664
|
-
let typeOrder = "
|
|
664
|
+
let typeOrder = "string";
|
|
665
665
|
if (column) {
|
|
666
|
-
typeOrder = column.type || "
|
|
666
|
+
typeOrder = column.type || "string";
|
|
667
667
|
}
|
|
668
668
|
switch (typeOrder) {
|
|
669
669
|
case "number":
|
|
@@ -713,7 +713,7 @@ const getInOrderColumns = (columns, isMultipleRows, columnsConfig, columnsWidths
|
|
|
713
713
|
};
|
|
714
714
|
const getAligByType = (columnType) => {
|
|
715
715
|
switch (columnType) {
|
|
716
|
-
case "
|
|
716
|
+
case "string":
|
|
717
717
|
return "left";
|
|
718
718
|
case "date":
|
|
719
719
|
case "boolean":
|
|
@@ -5,7 +5,7 @@ import type { MenuAction } from '../mui_extended/MenuActions/types';
|
|
|
5
5
|
import { ActionsProps } from './components/Actions/types';
|
|
6
6
|
export declare type GridFormatterPropss<T, SR> = FormatterProps<T, SR>;
|
|
7
7
|
export type { columnUncertaintyFormatter, columnPointsFormatter, columnNestedValueFormatter, } from './formatters';
|
|
8
|
-
export declare type ColumnType = '
|
|
8
|
+
export declare type ColumnType = 'string' | 'date' | 'number' | 'boolean' | 'custom';
|
|
9
9
|
export declare type ColumnAlign = 'left' | 'center' | 'right';
|
|
10
10
|
export declare interface GridRow {
|
|
11
11
|
id: number;
|
|
@@ -157,16 +157,16 @@ function ObjectLogs(props) {
|
|
|
157
157
|
}, {
|
|
158
158
|
key: "email",
|
|
159
159
|
name: getLabel("object_logs.email"),
|
|
160
|
-
type: "
|
|
160
|
+
type: "string",
|
|
161
161
|
width: 300
|
|
162
162
|
}, {
|
|
163
163
|
key: "resource_name",
|
|
164
164
|
name: getLabel("object_logs.resource_name"),
|
|
165
|
-
type: "
|
|
165
|
+
type: "string"
|
|
166
166
|
}, {
|
|
167
167
|
key: "log_preview",
|
|
168
168
|
name: getLabel("object_logs.log_preview"),
|
|
169
|
-
type: "
|
|
169
|
+
type: "string"
|
|
170
170
|
}, {
|
|
171
171
|
key: "Detail",
|
|
172
172
|
name: getLabel("object_logs.log_detail"),
|
|
@@ -175,7 +175,7 @@ function ObjectLogs(props) {
|
|
|
175
175
|
}, {
|
|
176
176
|
key: "ip",
|
|
177
177
|
name: getLabel("object_logs.ip"),
|
|
178
|
-
type: "
|
|
178
|
+
type: "string"
|
|
179
179
|
}], [getLabel]);
|
|
180
180
|
const {
|
|
181
181
|
pagerState,
|