@etsoo/materialui 1.2.70 → 1.2.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.
@@ -91,6 +91,18 @@ export interface ViewPageProps<T extends DataTypes.StringRecord> extends Omit<Co
91
91
  */
92
92
  refreshSeed?: number;
93
93
  }
94
+ /**
95
+ * View page format item data
96
+ * @param fieldData Field data
97
+ * @returns Result
98
+ */
99
+ export declare function formatItemData(fieldData: unknown): string | undefined;
100
+ /**
101
+ * View page get row options
102
+ * @param singleRow Row option
103
+ * @returns Result
104
+ */
105
+ export declare function getResp(singleRow: ViewPageRowType): object;
94
106
  /**
95
107
  * View page
96
108
  * @param props Props
@@ -23,7 +23,12 @@ export function ViewPageGridItem(props) {
23
23
  ":")),
24
24
  typeof data === "object" ? (data) : (React.createElement(Typography, { variant: "subtitle2" }, data))));
25
25
  }
26
- function formatItemData(fieldData) {
26
+ /**
27
+ * View page format item data
28
+ * @param fieldData Field data
29
+ * @returns Result
30
+ */
31
+ export function formatItemData(fieldData) {
27
32
  if (fieldData == null)
28
33
  return undefined;
29
34
  if (typeof fieldData === "string")
@@ -34,7 +39,12 @@ function formatItemData(fieldData) {
34
39
  : DateUtils.format(fieldData, "d");
35
40
  return `${fieldData}`;
36
41
  }
37
- function getResp(singleRow) {
42
+ /**
43
+ * View page get row options
44
+ * @param singleRow Row option
45
+ * @returns Result
46
+ */
47
+ export function getResp(singleRow) {
38
48
  return typeof singleRow === "object"
39
49
  ? singleRow
40
50
  : singleRow === "medium"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@etsoo/materialui",
3
- "version": "1.2.70",
3
+ "version": "1.2.71",
4
4
  "description": "TypeScript Material-UI Implementation",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -156,7 +156,12 @@ export interface ViewPageProps<T extends DataTypes.StringRecord>
156
156
  refreshSeed?: number;
157
157
  }
158
158
 
159
- function formatItemData(fieldData: unknown): string | undefined {
159
+ /**
160
+ * View page format item data
161
+ * @param fieldData Field data
162
+ * @returns Result
163
+ */
164
+ export function formatItemData(fieldData: unknown): string | undefined {
160
165
  if (fieldData == null) return undefined;
161
166
  if (typeof fieldData === "string") return fieldData;
162
167
  if (fieldData instanceof Date)
@@ -166,7 +171,12 @@ function formatItemData(fieldData: unknown): string | undefined {
166
171
  return `${fieldData}`;
167
172
  }
168
173
 
169
- function getResp(singleRow: ViewPageRowType) {
174
+ /**
175
+ * View page get row options
176
+ * @param singleRow Row option
177
+ * @returns Result
178
+ */
179
+ export function getResp(singleRow: ViewPageRowType) {
170
180
  return typeof singleRow === "object"
171
181
  ? singleRow
172
182
  : singleRow === "medium"