@reltio/components 1.4.828 → 1.4.829

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.
@@ -86,7 +86,10 @@ var SimpleAttributeEditor = function (_a) {
86
86
  onClose();
87
87
  };
88
88
  return (react_1.default.createElement(Popover_1.default, { open: !!containerRef, anchorEl: containerRef.current, anchorOrigin: { vertical: 'top', horizontal: 'left' }, transformOrigin: { vertical: 'top', horizontal: 'left' }, classes: {
89
- paper: classnames_1.default(styles.paper, (_b = {}, _b["" + styles.booleanInput] = mdm_sdk_1.isBooleanType(dataTypeDefinition.type), _b)),
89
+ paper: classnames_1.default(styles.paper, (_b = {},
90
+ _b[styles.booleanEditor] = mdm_sdk_1.isBooleanType(dataTypeDefinition.type),
91
+ _b[styles.timestampEditor] = mdm_sdk_1.isTimestampBasedType(dataTypeDefinition.type),
92
+ _b)),
90
93
  root: styles.popoverRoot
91
94
  }, onKeyUp: onKeyUp, onBackdropClick: applyChangesAndClose },
92
95
  react_1.default.createElement(editors_1.DataTypeValueEditor, { autoFocus: true, dataTypeDefinition: dataTypeDefinition, fieldName: mdm_sdk_1.attributeUriToSearchUri(attributeType.uri), onChange: changeEditorValue, TextFieldProps: TextFieldProps, value: editorValue, fullWidth: true })));
@@ -2,5 +2,5 @@ declare type StylesProps = {
2
2
  color: string;
3
3
  containerWidth: number;
4
4
  };
5
- export declare const useStyles: (props: StylesProps) => import("@material-ui/core/styles/withStyles").ClassNameMap<"input" | "paper" | "inputMultiline" | "textField" | "popoverRoot" | "booleanInput">;
5
+ export declare const useStyles: (props: StylesProps) => import("@material-ui/core/styles/withStyles").ClassNameMap<"input" | "paper" | "inputMultiline" | "textField" | "popoverRoot" | "booleanEditor" | "timestampEditor">;
6
6
  export {};
@@ -15,9 +15,14 @@ exports.useStyles = styles_1.makeStyles(function () { return ({
15
15
  paddingBottom: 0
16
16
  }
17
17
  },
18
- booleanInput: {
18
+ booleanEditor: {
19
19
  paddingLeft: '10px'
20
20
  },
21
+ timestampEditor: {
22
+ '&$paper': {
23
+ minWidth: '255px'
24
+ }
25
+ },
21
26
  paper: function (_a) {
22
27
  var color = _a.color, containerWidth = _a.containerWidth;
23
28
  return ({
@@ -1 +1 @@
1
- export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"timestampEditorInput" | "timestampEditor">;
1
+ export declare const useStyles: (props?: any) => import("@material-ui/core/styles/withStyles").ClassNameMap<"timestampEditor" | "timestampEditorInput">;
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.828",
3
+ "version": "1.4.829",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "index.js",
6
6
  "dependencies": {
7
7
  "@date-io/moment": "^1.3.5",
8
8
  "@react-google-maps/api": "^2.7.0",
9
- "@reltio/mdm-module": "^1.4.828",
10
- "@reltio/mdm-sdk": "^1.4.828",
9
+ "@reltio/mdm-module": "^1.4.829",
10
+ "@reltio/mdm-sdk": "^1.4.829",
11
11
  "classnames": "^2.2.5",
12
12
  "frontend-collective-react-dnd-scrollzone": "^1.0.2",
13
13
  "nanoid": "^2.0.0",