@reltio/components 1.4.922 → 1.4.923
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/cjs/components/DropDownSelector/DropDownSelector.js +1 -1
- package/cjs/components/history/hooks/useHistoryDiff.d.ts +1 -0
- package/cjs/components/history/hooks/useHistoryDiff.js +3 -3
- package/esm/components/DropDownSelector/DropDownSelector.js +1 -1
- package/esm/components/history/hooks/useHistoryDiff.d.ts +1 -0
- package/esm/components/history/hooks/useHistoryDiff.js +1 -1
- package/package.json +3 -3
|
@@ -83,7 +83,7 @@ var DropDownSelector = function (_a) {
|
|
|
83
83
|
Menu: Menu_1.default }, showIndicatorSeparator), components), menuPlacement: "auto", TextFieldProps: __assign(__assign({}, TextFieldProps), { label: label, variant: 'filled', margin: 'dense', classes: __assign(__assign({}, ramda_1.prop('classes', TextFieldProps)), { root: classnames_1.default(styles.formControl, ramda_1.path(['classes', 'root'], TextFieldProps)) }), inputProps: __assign({}, ramda_1.prop('inputProps', TextFieldProps)), InputProps: __assign(__assign({}, ramda_1.prop('InputProps', TextFieldProps)), { classes: __assign(__assign({}, ramda_1.path(['InputProps', 'classes'], TextFieldProps)), { root: classnames_1.default(styles.filledInputRoot, ramda_1.path(['InputProps', 'classes', 'root'], TextFieldProps)), underline: classnames_1.default((_b = {}, _b[underlineStyle.filledInputUnderline] = mdm_sdk_1.isEmptyValue(value), _b), ramda_1.path(['InputProps', 'classes', 'underline'], TextFieldProps)), focused: classnames_1.default('focused', ramda_1.path(['InputProps', 'classes', 'focused'], TextFieldProps)) }) }), InputLabelProps: __assign(__assign({}, ramda_1.prop('InputLabelProps', TextFieldProps)), { classes: __assign(__assign({}, ramda_1.path(['InputLabelProps', 'classes'], TextFieldProps)), { root: classnames_1.default(styles.inputLabel, ramda_1.path(['InputLabelProps', 'classes', 'root'], TextFieldProps)), shrink: classnames_1.default('shrink', ramda_1.path(['InputLabelProps', 'classes', 'shrink'], TextFieldProps)) }), shrink: !mdm_sdk_1.isEmptyValue(value) ? true : undefined }), ref: textFieldInputRef || inputRef }), inputRef: textFieldInputRef || inputRef, menuIsOpen: open, onMenuOpen: function () { return setOpen(true); }, onMenuClose: function () { return setOpen(false); } })));
|
|
84
84
|
};
|
|
85
85
|
exports.DropDownSelectorType = {
|
|
86
|
-
value: prop_types_1.default.object,
|
|
86
|
+
value: prop_types_1.default.oneOfType([prop_types_1.default.object, prop_types_1.default.array]),
|
|
87
87
|
label: prop_types_1.default.string.isRequired,
|
|
88
88
|
getOptions: prop_types_1.default.func,
|
|
89
89
|
options: prop_types_1.default.array,
|
|
@@ -19,13 +19,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
19
19
|
return result;
|
|
20
20
|
};
|
|
21
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.useHistoryDiff = void 0;
|
|
22
|
+
exports.useHistoryDiff = exports.defaultHistoryDiff = void 0;
|
|
23
23
|
var react_1 = require("react");
|
|
24
24
|
var react_redux_1 = require("react-redux");
|
|
25
25
|
var ramda_1 = require("ramda");
|
|
26
26
|
var mdm_sdk_1 = require("@reltio/mdm-sdk");
|
|
27
27
|
var mdm_module_1 = __importStar(require("@reltio/mdm-module"));
|
|
28
|
-
|
|
28
|
+
exports.defaultHistoryDiff = {
|
|
29
29
|
appearance: {},
|
|
30
30
|
attributes: {},
|
|
31
31
|
roles: [],
|
|
@@ -57,6 +57,6 @@ var useHistoryDiff = function () {
|
|
|
57
57
|
dispatch(mdm_module_1.profile.history.actions.setHistoryDiff(historyDiff_1));
|
|
58
58
|
}
|
|
59
59
|
}, [historySlice, historyMode, dispatch, entity]);
|
|
60
|
-
return historyDiff || defaultHistoryDiff;
|
|
60
|
+
return historyDiff || exports.defaultHistoryDiff;
|
|
61
61
|
};
|
|
62
62
|
exports.useHistoryDiff = useHistoryDiff;
|
|
@@ -58,7 +58,7 @@ var DropDownSelector = function (_a) {
|
|
|
58
58
|
Menu: Menu }, showIndicatorSeparator), components), menuPlacement: "auto", TextFieldProps: __assign(__assign({}, TextFieldProps), { label: label, variant: 'filled', margin: 'dense', classes: __assign(__assign({}, prop('classes', TextFieldProps)), { root: classnames(styles.formControl, path(['classes', 'root'], TextFieldProps)) }), inputProps: __assign({}, prop('inputProps', TextFieldProps)), InputProps: __assign(__assign({}, prop('InputProps', TextFieldProps)), { classes: __assign(__assign({}, path(['InputProps', 'classes'], TextFieldProps)), { root: classnames(styles.filledInputRoot, path(['InputProps', 'classes', 'root'], TextFieldProps)), underline: classnames((_b = {}, _b[underlineStyle.filledInputUnderline] = isEmptyValue(value), _b), path(['InputProps', 'classes', 'underline'], TextFieldProps)), focused: classnames('focused', path(['InputProps', 'classes', 'focused'], TextFieldProps)) }) }), InputLabelProps: __assign(__assign({}, prop('InputLabelProps', TextFieldProps)), { classes: __assign(__assign({}, path(['InputLabelProps', 'classes'], TextFieldProps)), { root: classnames(styles.inputLabel, path(['InputLabelProps', 'classes', 'root'], TextFieldProps)), shrink: classnames('shrink', path(['InputLabelProps', 'classes', 'shrink'], TextFieldProps)) }), shrink: !isEmptyValue(value) ? true : undefined }), ref: textFieldInputRef || inputRef }), inputRef: textFieldInputRef || inputRef, menuIsOpen: open, onMenuOpen: function () { return setOpen(true); }, onMenuClose: function () { return setOpen(false); } })));
|
|
59
59
|
};
|
|
60
60
|
export var DropDownSelectorType = {
|
|
61
|
-
value: PropTypes.object,
|
|
61
|
+
value: PropTypes.oneOfType([PropTypes.object, PropTypes.array]),
|
|
62
62
|
label: PropTypes.string.isRequired,
|
|
63
63
|
getOptions: PropTypes.func,
|
|
64
64
|
options: PropTypes.array,
|
|
@@ -3,7 +3,7 @@ import { useDispatch, useSelector } from 'react-redux';
|
|
|
3
3
|
import { evolve, map } from 'ramda';
|
|
4
4
|
import { entity as History, wrapInArrayIfNeeded } from '@reltio/mdm-sdk';
|
|
5
5
|
import mdmModule, { HistoryMode, profile } from '@reltio/mdm-module';
|
|
6
|
-
var defaultHistoryDiff = {
|
|
6
|
+
export var defaultHistoryDiff = {
|
|
7
7
|
appearance: {},
|
|
8
8
|
attributes: {},
|
|
9
9
|
roles: [],
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.923",
|
|
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.
|
|
11
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
10
|
+
"@reltio/mdm-module": "^1.4.923",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.923",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|