@pega/react-sdk-overrides 0.23.13 → 0.23.14
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.
|
@@ -3,6 +3,7 @@ import { KeyboardDateTimePicker } from '@material-ui/pickers';
|
|
|
3
3
|
import TextInput from '@pega/react-sdk-components/lib/components/field/TextInput';
|
|
4
4
|
import handleEvent from '@pega/react-sdk-components/lib/components/helpers/event-utils';
|
|
5
5
|
import FieldValueList from '@pega/react-sdk-components/lib/components/designSystemExtension/FieldValueList';
|
|
6
|
+
import { format } from '@pega/react-sdk-components/lib/components/helpers/formatters/';
|
|
6
7
|
|
|
7
8
|
export default function DateTime(props) {
|
|
8
9
|
const {
|
|
@@ -25,13 +26,16 @@ export default function DateTime(props) {
|
|
|
25
26
|
const helperTextToDisplay = validatemessage || helperText;
|
|
26
27
|
|
|
27
28
|
if(displayMode === 'LABELS_LEFT'){
|
|
29
|
+
const formattedDate = format(props.value, 'datetime');
|
|
28
30
|
const field = {
|
|
29
|
-
[label]:
|
|
31
|
+
[label]: formattedDate
|
|
30
32
|
};
|
|
31
33
|
return <FieldValueList item={field}/>
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
if (readOnly) {
|
|
37
|
+
const formattedDate = format(props.value, 'datetime');
|
|
38
|
+
props.value = formattedDate;
|
|
35
39
|
return <TextInput {...props} />;
|
|
36
40
|
}
|
|
37
41
|
|
|
@@ -35,7 +35,7 @@ import IconButton from '@material-ui/core/IconButton';
|
|
|
35
35
|
import CloseIcon from '@material-ui/icons/Close';
|
|
36
36
|
import { Radio } from '@material-ui/core';
|
|
37
37
|
import Checkbox from '@material-ui/core/Checkbox';
|
|
38
|
-
import { filterData } from '@pega/react-sdk-components/lib/components/
|
|
38
|
+
import { filterData } from '@pega/react-sdk-components/lib/components/helpers/simpleTableHelpers';
|
|
39
39
|
import './ListView.css';
|
|
40
40
|
|
|
41
41
|
const SELECTION_MODE = { SINGLE: 'single', MULTI: 'multi' };
|
|
@@ -8,7 +8,7 @@ import TableHead from '@material-ui/core/TableHead';
|
|
|
8
8
|
import TableRow from '@material-ui/core/TableRow';
|
|
9
9
|
import Paper from '@material-ui/core/Paper';
|
|
10
10
|
import { makeStyles } from '@material-ui/core/styles';
|
|
11
|
-
import { buildFieldsForTable, filterData } from '@pega/react-sdk-components/lib/components/
|
|
11
|
+
import { buildFieldsForTable, filterData } from '@pega/react-sdk-components/lib/components/helpers/simpleTableHelpers';
|
|
12
12
|
import { getDataPage } from '@pega/react-sdk-components/lib/components/helpers/data_page';
|
|
13
13
|
import Link from '@material-ui/core/Link';
|
|
14
14
|
import { getReferenceList } from '@pega/react-sdk-components/lib/components/helpers/field-group-utils';
|
package/package.json
CHANGED