@axinom/mosaic-ui 0.55.0-rc.14 → 0.55.0-rc.16
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/dist/components/DynamicDataList/DynamicDataList.model.d.ts +4 -4
- package/dist/components/DynamicDataList/DynamicDataList.model.d.ts.map +1 -1
- package/dist/components/FormElements/SingleLineText/SingleLineText.d.ts.map +1 -1
- package/dist/components/List/List.model.d.ts +4 -4
- package/dist/components/List/List.model.d.ts.map +1 -1
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/DynamicDataList/DynamicDataList.model.ts +5 -5
- package/src/components/FormElements/SingleLineText/SingleLineText.tsx +2 -1
- package/src/components/List/List.model.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axinom/mosaic-ui",
|
|
3
|
-
"version": "0.55.0-rc.
|
|
3
|
+
"version": "0.55.0-rc.16",
|
|
4
4
|
"description": "UI components for building Axinom Mosaic applications",
|
|
5
5
|
"author": "Axinom",
|
|
6
6
|
"license": "PROPRIETARY",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"build-storybook": "storybook build"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@axinom/mosaic-core": "^0.4.28-rc.
|
|
35
|
+
"@axinom/mosaic-core": "^0.4.28-rc.16",
|
|
36
36
|
"@faker-js/faker": "^7.4.0",
|
|
37
37
|
"@geoffcox/react-splitter": "^2.1.2",
|
|
38
38
|
"@mui/base": "5.0.0-beta.40",
|
|
@@ -107,5 +107,5 @@
|
|
|
107
107
|
"publishConfig": {
|
|
108
108
|
"access": "public"
|
|
109
109
|
},
|
|
110
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "27c9cf18c9a4dcbf867a25b92a5ca25bb3b80993"
|
|
111
111
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Data } from '../../types/data';
|
|
2
2
|
import { ColumnRenderer } from '../List/List.model';
|
|
3
3
|
|
|
4
|
-
interface
|
|
4
|
+
interface DDLUnboundColumn<T extends Data> extends DDLBaseColumn<T> {
|
|
5
5
|
/** The name of the property on the Data object that should be rendered in that column. */
|
|
6
6
|
propertyName?: keyof T;
|
|
7
7
|
/**
|
|
@@ -16,7 +16,7 @@ interface UnboundColumn<T extends Data> extends BaseColumn<T> {
|
|
|
16
16
|
key: string;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
interface
|
|
19
|
+
interface DDLBoundColumn<T extends Data> extends DDLBaseColumn<T> {
|
|
20
20
|
/** The name of the property on the Data object that should be rendered in that column. */
|
|
21
21
|
propertyName: keyof T;
|
|
22
22
|
|
|
@@ -32,7 +32,7 @@ interface BoundColumn<T extends Data> extends BaseColumn<T> {
|
|
|
32
32
|
key?: string;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
export interface
|
|
35
|
+
export interface DDLBaseColumn<T extends Data> {
|
|
36
36
|
/** The width of the column as CSS size (default: 1fr) */
|
|
37
37
|
size?: string;
|
|
38
38
|
/** Column's header label */
|
|
@@ -63,8 +63,8 @@ export interface BaseColumn<T extends Data> {
|
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
export type DynamicListColumn<T extends Data> =
|
|
66
|
-
|
|
|
67
|
-
|
|
|
66
|
+
| DDLUnboundColumn<T>
|
|
67
|
+
| DDLBoundColumn<T>;
|
|
68
68
|
|
|
69
69
|
export type DynamicListDataEntryRenderer = (
|
|
70
70
|
/** Value to render. */
|
|
@@ -74,7 +74,8 @@ export const SingleLineText: React.FC<SingleLineTextProps> = ({
|
|
|
74
74
|
|
|
75
75
|
useEffect(() => {
|
|
76
76
|
if (innerRef.current) {
|
|
77
|
-
|
|
77
|
+
const isTruthyValue = value === 0 || Boolean(value);
|
|
78
|
+
innerRef.current.value = isTruthyValue ? String(value) : '';
|
|
78
79
|
}
|
|
79
80
|
}, [innerRef, value]);
|
|
80
81
|
|
|
@@ -18,7 +18,7 @@ export interface ColumnSortKeys {
|
|
|
18
18
|
descending: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
interface
|
|
21
|
+
interface ListUnboundColumn<T extends Data> extends ListBaseColumn<T> {
|
|
22
22
|
/** The name of the property on the Data object that should be rendered in that column. */
|
|
23
23
|
propertyName?: keyof T;
|
|
24
24
|
/**
|
|
@@ -34,7 +34,7 @@ interface UnboundColumn<T extends Data> extends BaseColumn<T> {
|
|
|
34
34
|
key: string;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
interface
|
|
37
|
+
interface ListBoundColumn<T extends Data> extends ListBaseColumn<T> {
|
|
38
38
|
/** The name of the property on the Data object that should be rendered in that column. */
|
|
39
39
|
propertyName: keyof T;
|
|
40
40
|
|
|
@@ -51,7 +51,7 @@ interface BoundColumn<T extends Data> extends BaseColumn<T> {
|
|
|
51
51
|
key?: string;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
interface
|
|
54
|
+
interface ListBaseColumn<T extends Data> {
|
|
55
55
|
/** The width of the column as CSS size (default: 1fr) */
|
|
56
56
|
size?: string;
|
|
57
57
|
/** Column's header label */
|
|
@@ -82,7 +82,7 @@ interface BaseColumn<T extends Data> {
|
|
|
82
82
|
disableResizing?: boolean;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export type Column<T extends Data> =
|
|
85
|
+
export type Column<T extends Data> = ListUnboundColumn<T> | ListBoundColumn<T>;
|
|
86
86
|
|
|
87
87
|
export interface ColumnMap {
|
|
88
88
|
[key: string]: string;
|