@reltio/components 1.4.1321 → 1.4.1323

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.
@@ -87,14 +87,14 @@ var DateRangeEditor = function (_a) {
87
87
  var placeholder = localeFormat + (dataTypeDefinition.type === mdm_sdk_1.DataTypes.TYPE_TIMESTAMP ? ' HH:MM' : '');
88
88
  var rangeOptions = (0, react_1.useMemo)(function () {
89
89
  return options ||
90
- Object.values(mdm_sdk_1.DateRangeValues).map(function (option) { return ({ value: option, label: (0, mdm_sdk_1.getRangeOptionLabel)(option) }); });
90
+ Object.values(mdm_sdk_1.AllDateRangeValues).map(function (option) { return ({ value: option, label: (0, mdm_sdk_1.getRangeOptionLabel)(option) }); });
91
91
  }, [options]);
92
92
  var inputRef = (0, react_1.useRef)(null);
93
93
  var _h = (0, react_1.useState)(false), open = _h[0], setOpen = _h[1];
94
94
  var _j = (0, react_1.useState)(), customValue = _j[0], setCustomValue = _j[1];
95
95
  var styles = (0, styles_1.useStyles)();
96
96
  var onItemClick = function (value) {
97
- if (value === mdm_sdk_1.DateRangeValues.PICK_DATE) {
97
+ if (value === mdm_sdk_1.AllDateRangeValues.PICK_DATE) {
98
98
  setCustomValue(value);
99
99
  }
100
100
  else {
@@ -26,7 +26,7 @@ import classnames from 'classnames';
26
26
  import moment from 'moment';
27
27
  import i18n from 'ui-i18n';
28
28
  import { always, cond, curry, defaultTo, identity, is, isNil, map, pipe, prop, propEq } from 'ramda';
29
- import { DataTypes, DateRangeValues, formatDataTypeValue, getDateRangeByValue, getRangeOptionLabel, isEmptyValue } from '@reltio/mdm-sdk';
29
+ import { DataTypes, AllDateRangeValues, formatDataTypeValue, getDateRangeByValue, getRangeOptionLabel, isEmptyValue } from '@reltio/mdm-sdk';
30
30
  import TextField from '@material-ui/core/TextField';
31
31
  import MenuItem from '@material-ui/core/MenuItem';
32
32
  import Typography from '@material-ui/core/Typography';
@@ -59,14 +59,14 @@ var DateRangeEditor = function (_a) {
59
59
  var placeholder = localeFormat + (dataTypeDefinition.type === DataTypes.TYPE_TIMESTAMP ? ' HH:MM' : '');
60
60
  var rangeOptions = useMemo(function () {
61
61
  return options ||
62
- Object.values(DateRangeValues).map(function (option) { return ({ value: option, label: getRangeOptionLabel(option) }); });
62
+ Object.values(AllDateRangeValues).map(function (option) { return ({ value: option, label: getRangeOptionLabel(option) }); });
63
63
  }, [options]);
64
64
  var inputRef = useRef(null);
65
65
  var _h = useState(false), open = _h[0], setOpen = _h[1];
66
66
  var _j = useState(), customValue = _j[0], setCustomValue = _j[1];
67
67
  var styles = useStyles();
68
68
  var onItemClick = function (value) {
69
- if (value === DateRangeValues.PICK_DATE) {
69
+ if (value === AllDateRangeValues.PICK_DATE) {
70
70
  setCustomValue(value);
71
71
  }
72
72
  else {
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@reltio/components",
3
- "version": "1.4.1321",
3
+ "version": "1.4.1323",
4
4
  "license": "SEE LICENSE IN LICENSE FILE",
5
5
  "main": "./cjs/index.js",
6
6
  "module": "./esm/index.js",
7
7
  "dependencies": {
8
8
  "@date-io/moment": "^1.3.5",
9
9
  "@react-google-maps/api": "2.7.0",
10
- "@reltio/mdm-module": "^1.4.1321",
11
- "@reltio/mdm-sdk": "^1.4.1321",
10
+ "@reltio/mdm-module": "^1.4.1323",
11
+ "@reltio/mdm-sdk": "^1.4.1323",
12
12
  "classnames": "^2.2.5",
13
13
  "d3-cloud": "^1.2.5",
14
14
  "d3-geo": "^2.0.1",