@reltio/components 1.4.1170 → 1.4.1173
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.
|
@@ -16,8 +16,8 @@ var ModeSwitcher = function (_a) {
|
|
|
16
16
|
var getChangeModeHandler = function (newMode) { return function () { return onChange(newMode); }; };
|
|
17
17
|
return (react_1.default.createElement(ButtonGroup_1.default, { className: className }, modes.map(function (_a) {
|
|
18
18
|
var _b;
|
|
19
|
-
var id = _a.id, title = _a.title, tooltipTitle = _a.tooltipTitle, Icon = _a.Icon;
|
|
20
|
-
return (react_1.default.createElement(ButtonWithTooltip, { key: String(id), className: classnames_1.default(styles.button, (_b = {}, _b[styles.current] = modeId === id, _b), classes.button), tooltipTitle: tooltipTitle, onClick: getChangeModeHandler(id), "data-reltio-id": "reltio-search-mode-" + id },
|
|
19
|
+
var id = _a.id, title = _a.title, tooltipTitle = _a.tooltipTitle, Icon = _a.Icon, disabled = _a.disabled;
|
|
20
|
+
return (react_1.default.createElement(ButtonWithTooltip, { disabled: disabled, showForDisabled: disabled && !!tooltipTitle, key: String(id), className: classnames_1.default(styles.button, (_b = {}, _b[styles.current] = modeId === id, _b), classes.button), tooltipTitle: tooltipTitle, onClick: getChangeModeHandler(id), "data-reltio-id": "reltio-search-mode-" + id },
|
|
21
21
|
Icon && react_1.default.createElement(Icon, { className: styles.icon }),
|
|
22
22
|
title && react_1.default.createElement("div", { className: styles.title }, title)));
|
|
23
23
|
})));
|
|
@@ -11,8 +11,8 @@ var ModeSwitcher = function (_a) {
|
|
|
11
11
|
var getChangeModeHandler = function (newMode) { return function () { return onChange(newMode); }; };
|
|
12
12
|
return (React.createElement(ButtonGroup, { className: className }, modes.map(function (_a) {
|
|
13
13
|
var _b;
|
|
14
|
-
var id = _a.id, title = _a.title, tooltipTitle = _a.tooltipTitle, Icon = _a.Icon;
|
|
15
|
-
return (React.createElement(ButtonWithTooltip, { key: String(id), className: classnames(styles.button, (_b = {}, _b[styles.current] = modeId === id, _b), classes.button), tooltipTitle: tooltipTitle, onClick: getChangeModeHandler(id), "data-reltio-id": "reltio-search-mode-" + id },
|
|
14
|
+
var id = _a.id, title = _a.title, tooltipTitle = _a.tooltipTitle, Icon = _a.Icon, disabled = _a.disabled;
|
|
15
|
+
return (React.createElement(ButtonWithTooltip, { disabled: disabled, showForDisabled: disabled && !!tooltipTitle, key: String(id), className: classnames(styles.button, (_b = {}, _b[styles.current] = modeId === id, _b), classes.button), tooltipTitle: tooltipTitle, onClick: getChangeModeHandler(id), "data-reltio-id": "reltio-search-mode-" + id },
|
|
16
16
|
Icon && React.createElement(Icon, { className: styles.icon }),
|
|
17
17
|
title && React.createElement("div", { className: styles.title }, title)));
|
|
18
18
|
})));
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reltio/components",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.1173",
|
|
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.1173",
|
|
11
|
+
"@reltio/mdm-sdk": "^1.4.1173",
|
|
12
12
|
"classnames": "^2.2.5",
|
|
13
13
|
"d3-cloud": "^1.2.5",
|
|
14
14
|
"d3-geo": "^2.0.1",
|