@reltio/components 1.4.2254 → 1.4.2255
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.
|
@@ -4,6 +4,8 @@ type Props = {
|
|
|
4
4
|
onChange: (value: number) => void;
|
|
5
5
|
className?: string;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
|
+
minDate?: number;
|
|
8
|
+
maxDate?: number;
|
|
7
9
|
};
|
|
8
|
-
export declare const ActivenessDateControl: ({ value, onChange, className, fullWidth }: Props) => React.JSX.Element;
|
|
10
|
+
export declare const ActivenessDateControl: ({ value, onChange, className, fullWidth, minDate, maxDate }: Props) => React.JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -3,9 +3,9 @@ import i18n from 'ui-i18n';
|
|
|
3
3
|
import { pipe } from 'ramda';
|
|
4
4
|
import { DateEditor } from '../DateEditor/DateEditor';
|
|
5
5
|
export var ActivenessDateControl = function (_a) {
|
|
6
|
-
var value = _a.value, onChange = _a.onChange, className = _a.className, fullWidth = _a.fullWidth;
|
|
6
|
+
var value = _a.value, onChange = _a.onChange, className = _a.className, fullWidth = _a.fullWidth, minDate = _a.minDate, maxDate = _a.maxDate;
|
|
7
7
|
var handleChange = pipe(function (date) { return date && date.getTime(); }, onChange);
|
|
8
|
-
return (React.createElement(DateEditor, { value: value, label: i18n.text('Effective date'), onChange: handleChange, slotProps: {
|
|
8
|
+
return (React.createElement(DateEditor, { value: value, label: i18n.text('Effective date'), onChange: handleChange, minDate: minDate, maxDate: maxDate, slotProps: {
|
|
9
9
|
textField: { size: 'small', className: className, fullWidth: fullWidth }
|
|
10
10
|
} }));
|
|
11
11
|
};
|
|
@@ -4,6 +4,8 @@ type Props = {
|
|
|
4
4
|
onChange: (value: number) => void;
|
|
5
5
|
className?: string;
|
|
6
6
|
fullWidth?: boolean;
|
|
7
|
+
minDate?: number;
|
|
8
|
+
maxDate?: number;
|
|
7
9
|
};
|
|
8
|
-
export declare const ActivenessDateControl: ({ value, onChange, className, fullWidth }: Props) => React.JSX.Element;
|
|
10
|
+
export declare const ActivenessDateControl: ({ value, onChange, className, fullWidth, minDate, maxDate }: Props) => React.JSX.Element;
|
|
9
11
|
export {};
|
|
@@ -9,9 +9,9 @@ var ui_i18n_1 = __importDefault(require("ui-i18n"));
|
|
|
9
9
|
var ramda_1 = require("ramda");
|
|
10
10
|
var DateEditor_1 = require("../DateEditor/DateEditor");
|
|
11
11
|
var ActivenessDateControl = function (_a) {
|
|
12
|
-
var value = _a.value, onChange = _a.onChange, className = _a.className, fullWidth = _a.fullWidth;
|
|
12
|
+
var value = _a.value, onChange = _a.onChange, className = _a.className, fullWidth = _a.fullWidth, minDate = _a.minDate, maxDate = _a.maxDate;
|
|
13
13
|
var handleChange = (0, ramda_1.pipe)(function (date) { return date && date.getTime(); }, onChange);
|
|
14
|
-
return (react_1.default.createElement(DateEditor_1.DateEditor, { value: value, label: ui_i18n_1.default.text('Effective date'), onChange: handleChange, slotProps: {
|
|
14
|
+
return (react_1.default.createElement(DateEditor_1.DateEditor, { value: value, label: ui_i18n_1.default.text('Effective date'), onChange: handleChange, minDate: minDate, maxDate: maxDate, slotProps: {
|
|
15
15
|
textField: { size: 'small', className: className, fullWidth: fullWidth }
|
|
16
16
|
} }));
|
|
17
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.2255",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE FILE",
|
|
5
5
|
"main": "./cjs/index.js",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"@fluentui/react-context-selector": "^9.1.26",
|
|
12
12
|
"@googlemaps/markerclusterer": "^2.5.3",
|
|
13
13
|
"@react-sigma/core": "3.4.0",
|
|
14
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
14
|
+
"@reltio/mdm-sdk": "^1.4.2038",
|
|
15
15
|
"@vis.gl/react-google-maps": "^1.3.0",
|
|
16
16
|
"d3-cloud": "^1.2.5",
|
|
17
17
|
"d3-geo": "^2.0.1",
|