@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(action.option.item);
101
+ onItemSelected((_b = args) === null || _b === void 0 ? void 0 : _b.item);
101
102
  }
102
103
  }
103
104
  };
@@ -86,7 +86,7 @@ interface ICommonContainerOwnProps {
86
86
  /**
87
87
  * Tooltip to display on hover of the editor.
88
88
  */
89
- editorTooltip?: string;
89
+ editorTooltip?: string | Components.Tooltip.ITooltipOptions;
90
90
  /**
91
91
  * Classname to add to the editor.
92
92
  */
@@ -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["data-tip"] = editorTooltip;
152
+ Tooltip.setDomProperties(editorProps, editorTooltip);
152
153
  }
153
154
  if (editorClassName) {
154
155
  editorProps.className = editorClassName;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "0.10.54",
3
+ "version": "0.10.56",
4
4
  "description": "React application logic and components for the Neo client library",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",