jsl-ui 9.20.11 → 9.20.12

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.
@@ -10,6 +10,7 @@ export declare let HtmlFormatter: ISlickFormatter;
10
10
  export declare let LookupFormatter: ISlickFormatter;
11
11
  export declare let MultiLookupFormatter: ISlickFormatter;
12
12
  export declare let TextFormatter: ISlickFormatter;
13
+ export declare let SingleWordTextFormatter: ISlickFormatter;
13
14
  export declare let TooltipFormatter: ISlickFormatter;
14
15
  export declare let MultiLineTextFormatter: ISlickFormatter;
15
16
  export declare let TimeFormatter: ISlickFormatter;
@@ -101,6 +101,14 @@ export var TextFormatter = function (row, cell, value, columnDef, dataContext) {
101
101
  return escapeHTMLChars(value + "");
102
102
  }
103
103
  };
104
+ export var SingleWordTextFormatter = function (row, cell, value, columnDef, dataContext) {
105
+ if (value == null) {
106
+ return " ";
107
+ }
108
+ else {
109
+ return " " + escapeHTMLChars(value + "");
110
+ }
111
+ };
104
112
  export var TooltipFormatter = function (row, cell, value, columnDef, dataContext) {
105
113
  if (value == null) {
106
114
  return "";
@@ -2951,8 +2951,8 @@ export function SlickGrid(container, data, columns, options) {
2951
2951
  cellCss + addlCssClasses + "' " +
2952
2952
  toolTip +
2953
2953
  ((getRowHeight(row) !== options.rowHeight)
2954
- ? "style='height:" + (getRowHeight(row) - cellHeightDiff) + "px'> " //TODO: empty space is for selection bugfix
2955
- : "> "); //TODO: empty space is for selection bugfix
2954
+ ? "style='height:" + (getRowHeight(row) - cellHeightDiff) + "px'>"
2955
+ : ">");
2956
2956
  // if there is a corresponding row (if not, this is the Add New row or this data hasn't been loaded yet)
2957
2957
  if (item) {
2958
2958
  stringResult += (Object.prototype.toString.call(formatterResult) !== "[object Object]" ? formatterResult : formatterResult.text);