@etsoo/materialui 1.0.69 → 1.0.71

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.
@@ -50,9 +50,9 @@ export const ShowDataComparison = (data, modelTitle, getLabel, equalCheck = true
50
50
  const inputs = (React.createElement(Table, null,
51
51
  React.createElement(TableHead, null,
52
52
  React.createElement(TableRow, null,
53
- React.createElement(TableCell, { width: "18%" }, getLabel('field')),
54
- React.createElement(TableCell, { width: "41%", align: "right" }, getLabel('oldValue')),
55
- React.createElement(TableCell, { width: "41%", align: "right" }, getLabel('newValue')))),
53
+ React.createElement(TableCell, { width: "18%" }, globalApp.get('field')),
54
+ React.createElement(TableCell, { width: "41%", align: "right" }, globalApp.get('oldValue')),
55
+ React.createElement(TableCell, { width: "41%", align: "right" }, globalApp.get('newValue')))),
56
56
  React.createElement(TableBody, null, rows.map((row) => (React.createElement(TableRow, { key: row.field },
57
57
  React.createElement(TableCell, null, getLabel(row.field)),
58
58
  React.createElement(TableCell, { align: "right" }, formatValue(row.oldValue, globalApp)),
@@ -29,7 +29,10 @@ export interface ViewPageField<T extends object> extends GridProps {
29
29
  */
30
30
  renderProps?: GridColumnRenderProps;
31
31
  }
32
- declare type ViewPageFieldType<T extends object> = (string & keyof T) | [string & keyof T, GridDataType, GridColumnRenderProps?, RowType?] | ViewPageField<T>;
32
+ /**
33
+ * View page field type
34
+ */
35
+ export declare type ViewPageFieldType<T extends object> = (string & keyof T) | [string & keyof T, GridDataType, GridColumnRenderProps?, RowType?] | ViewPageField<T>;
33
36
  /**
34
37
  * View page props
35
38
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -71,12 +71,12 @@ export const ShowDataComparison = (
71
71
  <Table>
72
72
  <TableHead>
73
73
  <TableRow>
74
- <TableCell width="18%">{getLabel('field')}</TableCell>
74
+ <TableCell width="18%">{globalApp.get('field')}</TableCell>
75
75
  <TableCell width="41%" align="right">
76
- {getLabel('oldValue')}
76
+ {globalApp.get('oldValue')}
77
77
  </TableCell>
78
78
  <TableCell width="41%" align="right">
79
- {getLabel('newValue')}
79
+ {globalApp.get('newValue')}
80
80
  </TableCell>
81
81
  </TableRow>
82
82
  </TableHead>
@@ -48,7 +48,10 @@ export interface ViewPageField<T extends object> extends GridProps {
48
48
  renderProps?: GridColumnRenderProps;
49
49
  }
50
50
 
51
- type ViewPageFieldType<T extends object> =
51
+ /**
52
+ * View page field type
53
+ */
54
+ export type ViewPageFieldType<T extends object> =
52
55
  | (string & keyof T)
53
56
  | [string & keyof T, GridDataType, GridColumnRenderProps?, RowType?]
54
57
  | ViewPageField<T>;