@dartech/arsenal-ui 1.4.44 → 1.4.46
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/index.js +29 -15
- package/package.json +1 -1
- package/src/lib/Property/UpsertProperty/PropertyValueField/BooleanValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/DateTimeValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/DateValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/JsonValueField.d.ts +1 -0
- package/src/lib/Property/UpsertProperty/PropertyValueField/TimeValueField.d.ts +1 -0
- package/src/lib/Property/ViewProperty/PropertyItem.d.ts +1 -0
- package/src/theme/tableThemeOptions.d.ts +0 -4
package/index.js
CHANGED
@@ -328,6 +328,9 @@ const ControlInput = _a => {
|
|
328
328
|
minRows: textarea ? 3 : 1,
|
329
329
|
value: value !== null && value !== void 0 ? value : '',
|
330
330
|
onChange: customOnChange ? customOnChange : onChange,
|
331
|
+
InputLabelProps: {
|
332
|
+
shrink: !!textFieldProps.placeholder
|
333
|
+
},
|
331
334
|
inputProps: Object.assign(Object.assign({}, (_b = textFieldProps === null || textFieldProps === void 0 ? void 0 : textFieldProps.inputProps) !== null && _b !== void 0 ? _b : {}), {
|
332
335
|
value: value !== null && value !== void 0 ? value : ''
|
333
336
|
})
|
@@ -1711,8 +1714,7 @@ const tableThemeOptions = {
|
|
1711
1714
|
MuiTableHead: {
|
1712
1715
|
styleOverrides: {
|
1713
1716
|
root: {
|
1714
|
-
backgroundColor: '#F7F8FC'
|
1715
|
-
height: 40
|
1717
|
+
backgroundColor: '#F7F8FC'
|
1716
1718
|
}
|
1717
1719
|
}
|
1718
1720
|
},
|
@@ -1721,22 +1723,19 @@ const tableThemeOptions = {
|
|
1721
1723
|
root: {
|
1722
1724
|
'&:hover': {
|
1723
1725
|
backgroundColor: '#F7F8FC!important'
|
1724
|
-
}
|
1725
|
-
height: 40
|
1726
|
+
}
|
1726
1727
|
}
|
1727
1728
|
}
|
1728
1729
|
},
|
1729
1730
|
MuiTableCell: {
|
1730
1731
|
styleOverrides: {
|
1731
1732
|
root: {
|
1732
|
-
minHeight: 40,
|
1733
1733
|
padding: baseTheme.spacing(1, 2),
|
1734
1734
|
'&:first-of-type': {
|
1735
1735
|
paddingLeft: baseTheme.spacing(4)
|
1736
1736
|
}
|
1737
1737
|
},
|
1738
1738
|
head: {
|
1739
|
-
maxHeight: '40px',
|
1740
1739
|
padding: baseTheme.spacing(2.75, 2),
|
1741
1740
|
color: '#6D6E85'
|
1742
1741
|
},
|
@@ -1989,7 +1988,7 @@ const formatTableRowValue = ({
|
|
1989
1988
|
});
|
1990
1989
|
case 'array':
|
1991
1990
|
return jsx(Box, {
|
1992
|
-
children: value.map((val, index) => jsx(Box, {
|
1991
|
+
children: value === null || value === void 0 ? void 0 : value.map((val, index) => jsx(Box, {
|
1993
1992
|
children: val
|
1994
1993
|
}, index))
|
1995
1994
|
});
|
@@ -2510,7 +2509,9 @@ const ControlNumberInput = _a => {
|
|
2510
2509
|
rules: {
|
2511
2510
|
required: required ? textError.required : false,
|
2512
2511
|
validate: val => {
|
2513
|
-
if (val === null || val === 0)
|
2512
|
+
if (val === null || val === 0) {
|
2513
|
+
return required ? textError.required : true;
|
2514
|
+
}
|
2514
2515
|
if (decimal && !floatsOnly.test(val) || /^-*0+$/.test(val)) {
|
2515
2516
|
return textError.notValidNumber;
|
2516
2517
|
} else if (!decimal && !digitsOnly.test(val)) {
|
@@ -3453,12 +3454,12 @@ const StyledDataGrid = styled(DataGrid)(({
|
|
3453
3454
|
border: '1px solid rgba(38, 40, 66, 0.08)'
|
3454
3455
|
},
|
3455
3456
|
'& .MuiDataGrid-columnHeaders': {
|
3457
|
+
minHeight: '48px !important',
|
3456
3458
|
backgroundColor: '#F7F8FC',
|
3457
3459
|
borderTopLeftRadius: theme.spacing(3),
|
3458
3460
|
borderTopRightRadius: theme.spacing(3)
|
3459
3461
|
},
|
3460
3462
|
'& .MuiDataGrid-columnHeader, .MuiDataGrid-cell': {
|
3461
|
-
maxHeight: '40px!important',
|
3462
3463
|
padding: theme.spacing(2.75, 2),
|
3463
3464
|
color: '#6D6E85',
|
3464
3465
|
'&.Sorted': {
|
@@ -3468,16 +3469,18 @@ const StyledDataGrid = styled(DataGrid)(({
|
|
3468
3469
|
paddingLeft: theme.spacing(4)
|
3469
3470
|
},
|
3470
3471
|
borderRight: 0,
|
3471
|
-
borderLeft: 0
|
3472
|
+
borderLeft: 0,
|
3473
|
+
minHeight: '48px !important'
|
3472
3474
|
},
|
3473
3475
|
'& .MuiDataGrid-columnsContainer, .MuiDataGrid-cell': {
|
3474
|
-
maxHeight: '40px!important',
|
3475
3476
|
padding: theme.spacing(1, 2),
|
3476
3477
|
'&:first-of-type': {
|
3477
3478
|
paddingLeft: theme.spacing(4)
|
3478
3479
|
}
|
3479
3480
|
},
|
3480
3481
|
'& .MuiDataGrid-row': {
|
3482
|
+
maxHeight: 'none !important',
|
3483
|
+
minHeight: '48px !important',
|
3481
3484
|
'&:hover': {
|
3482
3485
|
backgroundColor: '#F7F8FC!important'
|
3483
3486
|
}
|
@@ -3487,9 +3490,12 @@ const StyledDataGrid = styled(DataGrid)(({
|
|
3487
3490
|
'&:focus': {
|
3488
3491
|
border: 0
|
3489
3492
|
},
|
3493
|
+
maxHeight: 'none !important',
|
3494
|
+
minHeight: '48px !important',
|
3495
|
+
lineHeight: 'unset !important',
|
3496
|
+
// whiteSpace: 'normal !important',
|
3490
3497
|
textOverflow: 'ellipsis',
|
3491
3498
|
wordBreak: 'break-all',
|
3492
|
-
overflow: 'hidden',
|
3493
3499
|
'& .MuiDataGrid-actionsCell': {
|
3494
3500
|
width: '100%',
|
3495
3501
|
gridGap: '4px',
|
@@ -3502,9 +3508,16 @@ const StyledDataGrid = styled(DataGrid)(({
|
|
3502
3508
|
'& .MuiPaginationItem-root': {
|
3503
3509
|
borderRadius: 0
|
3504
3510
|
},
|
3511
|
+
'& .MuiDataGrid-virtualScrollerContent': {
|
3512
|
+
height: 'auto !important',
|
3513
|
+
minHeight: '48px !important'
|
3514
|
+
},
|
3505
3515
|
'& .MuiDataGrid-virtualScrollerRenderZone': {
|
3506
3516
|
position: 'static'
|
3507
3517
|
},
|
3518
|
+
'& .MuiDataGrid-renderingZone': {
|
3519
|
+
maxHeight: 'none !important'
|
3520
|
+
},
|
3508
3521
|
'& .MuiDataGrid-cell:focus-within, & .MuiDataGrid-cell:focus': {
|
3509
3522
|
outline: 'none !important'
|
3510
3523
|
},
|
@@ -3622,8 +3635,6 @@ const Table = ({
|
|
3622
3635
|
}, {
|
3623
3636
|
children: jsx(StyledDataGrid, Object.assign({
|
3624
3637
|
autoHeight: true,
|
3625
|
-
headerHeight: 40,
|
3626
|
-
rowHeight: 40,
|
3627
3638
|
hideFooterPagination: !_pagination,
|
3628
3639
|
hideFooter: !_pagination,
|
3629
3640
|
disableSelectionOnClick: true,
|
@@ -3884,7 +3895,10 @@ function TableInner({
|
|
3884
3895
|
maxWidth: '90%',
|
3885
3896
|
overflow: 'hidden',
|
3886
3897
|
whiteSpace: 'nowrap',
|
3887
|
-
textOverflow: 'ellipsis'
|
3898
|
+
textOverflow: 'ellipsis',
|
3899
|
+
padding: ({
|
3900
|
+
spacing
|
3901
|
+
}) => spacing(2.5, 0)
|
3888
3902
|
}
|
3889
3903
|
}, {
|
3890
3904
|
children: jsx(Box, {
|
package/package.json
CHANGED
@@ -13,7 +13,6 @@ declare const tableThemeOptions: {
|
|
13
13
|
styleOverrides: {
|
14
14
|
root: {
|
15
15
|
backgroundColor: string;
|
16
|
-
height: number;
|
17
16
|
};
|
18
17
|
};
|
19
18
|
};
|
@@ -23,21 +22,18 @@ declare const tableThemeOptions: {
|
|
23
22
|
'&:hover': {
|
24
23
|
backgroundColor: string;
|
25
24
|
};
|
26
|
-
height: number;
|
27
25
|
};
|
28
26
|
};
|
29
27
|
};
|
30
28
|
MuiTableCell: {
|
31
29
|
styleOverrides: {
|
32
30
|
root: {
|
33
|
-
minHeight: number;
|
34
31
|
padding: string;
|
35
32
|
'&:first-of-type': {
|
36
33
|
paddingLeft: string;
|
37
34
|
};
|
38
35
|
};
|
39
36
|
head: {
|
40
|
-
maxHeight: string;
|
41
37
|
padding: string;
|
42
38
|
color: string;
|
43
39
|
};
|