@singularsystems/neo-react 0.10.54 → 0.10.56
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.
|
@@ -52,6 +52,7 @@ var AutoCompleteDropDown = /** @class */ (function (_super) {
|
|
|
52
52
|
return items.map(function (item) { return (__assign(__assign({}, item), { item: item, value: item[_this.valueMember], label: item[_this.displayMember] })); });
|
|
53
53
|
};
|
|
54
54
|
AutoCompleteDropDown.prototype.onItemSelected = function (args, action) {
|
|
55
|
+
var _a, _b;
|
|
55
56
|
var onItemSelected = this.props.onItemSelected;
|
|
56
57
|
if (this.props.bindItems) {
|
|
57
58
|
var itemsProperty = this.props.bindItems;
|
|
@@ -64,7 +65,7 @@ var AutoCompleteDropDown = /** @class */ (function (_super) {
|
|
|
64
65
|
bindIdsList.push(action.option.value);
|
|
65
66
|
}
|
|
66
67
|
if (onItemSelected) {
|
|
67
|
-
onItemSelected(action.option.item);
|
|
68
|
+
onItemSelected((_a = action.option) === null || _a === void 0 ? void 0 : _a.item);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
else if (action.action === "remove-value") {
|
|
@@ -97,7 +98,7 @@ var AutoCompleteDropDown = /** @class */ (function (_super) {
|
|
|
97
98
|
this.props.bindDisplay.value = args ? args.label : "";
|
|
98
99
|
}
|
|
99
100
|
if (onItemSelected) {
|
|
100
|
-
onItemSelected(
|
|
101
|
+
onItemSelected((_b = args) === null || _b === void 0 ? void 0 : _b.item);
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
};
|
|
@@ -8,6 +8,7 @@ import RadioList from './RadioList';
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { DataType } from '@singularsystems/neo-core/dist/Model/Misc';
|
|
10
10
|
import FileInput from './FileManager/FileInput';
|
|
11
|
+
import Tooltip from './Tooltip';
|
|
11
12
|
export var ControlType;
|
|
12
13
|
(function (ControlType) {
|
|
13
14
|
ControlType[ControlType["Date"] = 0] = "Date";
|
|
@@ -148,7 +149,7 @@ var BindPropsHelper = /** @class */ (function () {
|
|
|
148
149
|
if (!editorProps)
|
|
149
150
|
editorProps = {};
|
|
150
151
|
if (editorTooltip) {
|
|
151
|
-
editorProps
|
|
152
|
+
Tooltip.setDomProperties(editorProps, editorTooltip);
|
|
152
153
|
}
|
|
153
154
|
if (editorClassName) {
|
|
154
155
|
editorProps.className = editorClassName;
|