jsl-ui 9.20.12 → 9.21.0

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,7 +10,6 @@ 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;
14
13
  export declare let TooltipFormatter: ISlickFormatter;
15
14
  export declare let MultiLineTextFormatter: ISlickFormatter;
16
15
  export declare let TimeFormatter: ISlickFormatter;
@@ -101,14 +101,13 @@ 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
+ // export let SingleWordTextFormatter: ISlickFormatter = function (row, cell, value, columnDef, dataContext): string {
105
+ // if (value == null) {
106
+ // return " ";
107
+ // } else {
108
+ // return " " + escapeHTMLChars(value + "");
109
+ // }
110
+ // };
112
111
  export var TooltipFormatter = function (row, cell, value, columnDef, dataContext) {
113
112
  if (value == null) {
114
113
  return "";
@@ -80,6 +80,7 @@ export interface ISlickGridOptions {
80
80
  editCommandHandler?: (item: any, column: ISlickColumn, editCommand: any) => void;
81
81
  resizeDelta?: number;
82
82
  dragDelta?: number;
83
+ enableSingleWordSelection?: boolean;
83
84
  }
84
85
  export interface ISlickGrid<T> {
85
86
  "slickGridVersion": string;
@@ -1804,7 +1804,8 @@ export function SlickGrid(container, data, columns, options) {
1804
1804
  var c = columns[j];
1805
1805
  newWidth = $(columnElements[j]).width();
1806
1806
  if (c.previousWidth !== newWidth) {
1807
- changedColumns.push({ cell: j,
1807
+ changedColumns.push({
1808
+ cell: j,
1808
1809
  width: newWidth,
1809
1810
  previousWidth: c.previousWidth,
1810
1811
  column: c
@@ -2953,6 +2954,9 @@ export function SlickGrid(container, data, columns, options) {
2953
2954
  ((getRowHeight(row) !== options.rowHeight)
2954
2955
  ? "style='height:" + (getRowHeight(row) - cellHeightDiff) + "px'>"
2955
2956
  : ">");
2957
+ if (options.enableSingleWordSelection) {
2958
+ stringResult += "<div></div>";
2959
+ }
2956
2960
  // if there is a corresponding row (if not, this is the Add New row or this data hasn't been loaded yet)
2957
2961
  if (item) {
2958
2962
  stringResult += (Object.prototype.toString.call(formatterResult) !== "[object Object]" ? formatterResult : formatterResult.text);