@singularsystems/neo-react 0.10.36 → 0.10.37

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.
@@ -9,6 +9,8 @@ export interface INeoColumnProps<TData> extends INeoCommonColumnProps, IEditorCo
9
9
  width?: number | string;
10
10
  /** Tooltip to show in header. If you want the tooltip to show on the cells as well, use 'data-tip'. */
11
11
  headerTooltip?: string;
12
+ /** Tooltip to show in cells. If you want the tooltip to show on the cells as well, use 'data-tip'. */
13
+ cellTooltip?: string;
12
14
  /** Allows you to disable sorting on a column, or make clicking a column heading sort a specific property. */
13
15
  sort?: Model.IPropertyInstance | false;
14
16
  /** True if this column must have a total cell. */
@@ -91,7 +91,7 @@ var Column = /** @class */ (function (_super) {
91
91
  var _a;
92
92
  this.onRender();
93
93
  var allProps = BindPropsHelper.normaliseContainerProps(this, this.props, false);
94
- var _b = allProps.containerDom, width = _b.width, hideBelow = _b.hideBelow, hideAbove = _b.hideAbove, headerTooltip = _b.headerTooltip, alignment = _b.alignment, sort = _b.sort, sum = _b.sum, footerContent = _b.footerContent, headerClassName = _b.headerClassName, cellClassName = _b.cellClassName, onHeaderClick = _b.onHeaderClick, domProps = __rest(_b, ["width", "hideBelow", "hideAbove", "headerTooltip", "alignment", "sort", "sum", "footerContent", "headerClassName", "cellClassName", "onHeaderClick"]);
94
+ var _b = allProps.containerDom, width = _b.width, hideBelow = _b.hideBelow, hideAbove = _b.hideAbove, headerTooltip = _b.headerTooltip, cellTooltip = _b.cellTooltip, alignment = _b.alignment, sort = _b.sort, sum = _b.sum, footerContent = _b.footerContent, headerClassName = _b.headerClassName, cellClassName = _b.cellClassName, onHeaderClick = _b.onHeaderClick, domProps = __rest(_b, ["width", "hideBelow", "hideAbove", "headerTooltip", "cellTooltip", "alignment", "sort", "sum", "footerContent", "headerClassName", "cellClassName", "onHeaderClick"]);
95
95
  if (allProps.bind !== undefined) {
96
96
  if (!this.controlType || this.isHeader) {
97
97
  this.controlType = BindPropsHelper.getControlType(allProps);
@@ -133,7 +133,7 @@ var Column = /** @class */ (function (_super) {
133
133
  this.refreshStateObserver(allProps.editor);
134
134
  return this.isHeader ? this.renderHeader(allProps, domProps, headerTooltip, headerClassName) :
135
135
  this.isFooter ? this.renderFooter(allProps, domProps) :
136
- this.renderBody(allProps, domProps, cellClassName);
136
+ this.renderBody(allProps, domProps, cellTooltip, cellClassName);
137
137
  };
138
138
  Column.prototype.renderHeader = function (props, domProps, tooltip, headerClassName) {
139
139
  var _this = this;
@@ -153,7 +153,7 @@ var Column = /** @class */ (function (_super) {
153
153
  sortIcon &&
154
154
  React.createElement("i", { className: "column-sort-icon fa fa-" + sortIcon })));
155
155
  };
156
- Column.prototype.renderBody = function (props, domProps, cellClassName) {
156
+ Column.prototype.renderBody = function (props, domProps, cellTooltip, cellClassName) {
157
157
  var _this = this;
158
158
  var editorProps = props.editor;
159
159
  var containerProps = props.container;
@@ -183,7 +183,7 @@ var Column = /** @class */ (function (_super) {
183
183
  }
184
184
  }
185
185
  domProps.className = Utils.joinWithSpaces(domProps.className, cellClassName);
186
- return (React.createElement("td", __assign({}, domProps),
186
+ return (React.createElement("td", __assign({ "data-tip": cellTooltip }, domProps),
187
187
  !containerProps.suppressDefaultContent && (editor !== undefined ?
188
188
  editor :
189
189
  editorProps.bind ? displayValue : undefined),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@singularsystems/neo-react",
3
- "version": "0.10.36",
3
+ "version": "0.10.37",
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",
@@ -33,7 +33,7 @@
33
33
  "@types/rc-slider": "^8.6.5",
34
34
  "@types/react-color": "^3.0.1",
35
35
  "@types/react-select": "3.1.0",
36
- "@singularsystems/neo-core": "^0.10.42",
36
+ "@singularsystems/neo-core": "^0.10.44",
37
37
  "axios": "^0.21.1",
38
38
  "decimal.js-light": "2.5.1",
39
39
  "history": "4.10.1",