@reltio/components 1.4.702 → 1.4.703
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.
|
@@ -29,6 +29,17 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
29
29
|
__setModuleDefault(result, mod);
|
|
30
30
|
return result;
|
|
31
31
|
};
|
|
32
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
33
|
+
var t = {};
|
|
34
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
35
|
+
t[p] = s[p];
|
|
36
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
37
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
38
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
39
|
+
t[p[i]] = s[p[i]];
|
|
40
|
+
}
|
|
41
|
+
return t;
|
|
42
|
+
};
|
|
32
43
|
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
33
44
|
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
34
45
|
to[j] = from[i];
|
|
@@ -56,7 +67,7 @@ var ITEM_HEIGHT = 32;
|
|
|
56
67
|
var LIST_CONTAINER_HEIGHT = 300;
|
|
57
68
|
var DEFAULT_MIN_CONTAINER_WIDTH = 308;
|
|
58
69
|
var ConfigureColumnsPopup = function (_a) {
|
|
59
|
-
var open = _a.open, anchorEl = _a.anchorEl, data = _a.data, onSearch = _a.onSearch, onClose = _a.onClose, titleText = _a.titleText, filterText = _a.filterText, onListItemClick = _a.onListItemClick, selected = _a.selected, hideCheckBox = _a.hideCheckBox;
|
|
70
|
+
var open = _a.open, anchorEl = _a.anchorEl, data = _a.data, onSearch = _a.onSearch, onClose = _a.onClose, titleText = _a.titleText, filterText = _a.filterText, onListItemClick = _a.onListItemClick, selected = _a.selected, hideCheckBox = _a.hideCheckBox, otherProps = __rest(_a, ["open", "anchorEl", "data", "onSearch", "onClose", "titleText", "filterText", "onListItemClick", "selected", "hideCheckBox"]);
|
|
60
71
|
var filterItem = react_1.useCallback(function (item) {
|
|
61
72
|
return item.label.toLowerCase().includes(filterText.toLowerCase());
|
|
62
73
|
}, [filterText]);
|
|
@@ -96,7 +107,7 @@ var ConfigureColumnsPopup = function (_a) {
|
|
|
96
107
|
}, [hideCheckBox, onListItemClick, selected]);
|
|
97
108
|
var containerWidth = mdm_sdk_1.getMaxItemWidth('label')(groupedItems) || DEFAULT_MIN_CONTAINER_WIDTH;
|
|
98
109
|
var classes = styles_1.default();
|
|
99
|
-
return (react_1.default.createElement(SelectionPopup_1.default, { open: open, className: classnames_1.default(classes.container, classes.popupContainer), anchorEl: anchorEl, onClose: onClose, onSearch: onSearch, title: titleText, containerWidth: containerWidth, searchInputOnKeyDown: handleKeyDown },
|
|
110
|
+
return (react_1.default.createElement(SelectionPopup_1.default, __assign({ open: open, className: classnames_1.default(classes.container, classes.popupContainer), anchorEl: anchorEl, onClose: onClose, onSearch: onSearch, title: titleText, containerWidth: containerWidth, searchInputOnKeyDown: handleKeyDown }, otherProps),
|
|
100
111
|
react_1.default.createElement(VirtualGroupedList_1.default, { height: LIST_CONTAINER_HEIGHT, renderItem: renderListItem, items: items, hideSubtitles: true, getItemSize: getItemSize, containerWidth: containerWidth, focusIndex: focusIndex })));
|
|
101
112
|
};
|
|
102
113
|
exports.ConfigureColumnsPopup = ConfigureColumnsPopup;
|
|
@@ -99,10 +99,12 @@ var EntityTypesSelector = function (_a) {
|
|
|
99
99
|
var noTypesSelected = selectedEntityTypes.length === 0;
|
|
100
100
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
101
101
|
react_1.default.createElement(TextField_1.default, { label: ui_i18n_1.default.text('Entity type'), ref: rootRef, InputProps: {
|
|
102
|
-
startAdornment: noTypesSelected && !placeholder ? null : (react_1.default.createElement("div", { className: styles.inputText }, noTypesSelected ? (react_1.default.createElement("div", null, placeholder)) : (react_1.default.createElement(ListLabel_1.default, __assign({}, ListLabelProps, { list: selectedLabels }))))),
|
|
102
|
+
startAdornment: noTypesSelected && !placeholder ? null : (react_1.default.createElement("div", { className: classnames_1.default(styles.inputText, classes.inputText) }, noTypesSelected ? (react_1.default.createElement("div", null, placeholder)) : (react_1.default.createElement(ListLabel_1.default, __assign({}, ListLabelProps, { list: selectedLabels }))))),
|
|
103
103
|
classes: {
|
|
104
104
|
root: styles.inputRoot,
|
|
105
|
-
input: classnames_1.default(styles.input, (_b = {},
|
|
105
|
+
input: classnames_1.default(styles.input, classes.input, (_b = {},
|
|
106
|
+
_b[styles.emptyInput] = noTypesSelected && !placeholder,
|
|
107
|
+
_b)),
|
|
106
108
|
disabled: classnames_1.default(styles.disabledInput, (_c = {}, _c[styles.disabledPointer] = disabled, _c)),
|
|
107
109
|
underline: styles.disabledUnderline
|
|
108
110
|
},
|
|
@@ -131,7 +133,9 @@ EntityTypesSelector.propTypes = {
|
|
|
131
133
|
placeholder: prop_types_1.default.string,
|
|
132
134
|
classes: prop_types_1.default.shape({
|
|
133
135
|
root: prop_types_1.default.string,
|
|
134
|
-
label: prop_types_1.default.string
|
|
136
|
+
label: prop_types_1.default.string,
|
|
137
|
+
inputText: prop_types_1.default.string,
|
|
138
|
+
input: prop_types_1.default.string
|
|
135
139
|
}),
|
|
136
140
|
ListLabelProps: prop_types_1.default.shape({
|
|
137
141
|
maxWidth: prop_types_1.default.number
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.703",
|
|
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
|
-
"@reltio/mdm-module": "^1.4.
|
|
9
|
-
"@reltio/mdm-sdk": "^1.4.
|
|
8
|
+
"@reltio/mdm-module": "^1.4.703",
|
|
9
|
+
"@reltio/mdm-sdk": "^1.4.703",
|
|
10
10
|
"classnames": "^2.2.5",
|
|
11
11
|
"frontend-collective-react-dnd-scrollzone": "^1.0.2",
|
|
12
12
|
"nanoid": "^2.0.0",
|