@refinitiv-ui/efx-grid 6.0.92 → 6.0.93

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.
@@ -58,7 +58,7 @@ import { CoralItems } from "../../tr-grid-util/es6/CoralItems.js";
58
58
  * @type {Object}
59
59
  * @property {boolean=} cancel Set to true to cancel the openning operation.
60
60
  * @example
61
- * var cep = new InCellEditingPlugin();
61
+ * let cep = new InCellEditingPlugin();
62
62
  * cep.listen("preEditorOpening", function(e) {
63
63
  * e["cancel"] = true; // Cancel the editing process
64
64
  * });
@@ -73,9 +73,9 @@ import { CoralItems } from "../../tr-grid-util/es6/CoralItems.js";
73
73
  * @property {Element} inputElement
74
74
  * @property {Element} autoSuggest ef-autosuggest or atlas-autosuggest
75
75
  * @example
76
- * var cep = new InCellEditingPlugin();
76
+ * let cep = new InCellEditingPlugin();
77
77
  * cep.listen("editorOpened", function(e) {
78
- * var data = e.dataSource.getDataAt(e.rowIndex, e.field);
78
+ * let data = e.dataSource.getDataAt(e.rowIndex, e.field);
79
79
  * e.inputElement.value = data + " aaa";
80
80
  * });
81
81
  */
@@ -100,9 +100,9 @@ import { CoralItems } from "../../tr-grid-util/es6/CoralItems.js";
100
100
  * @property {boolean=} segmentSeparator This value is set to true if the editing row is a segment separator.
101
101
  * @property {Object} suggestionDetail Suggestion detail for auto suggest "item-select" event
102
102
  * @example
103
- * var cep = new InCellEditingPlugin();
103
+ * let cep = new InCellEditingPlugin();
104
104
  * cep.listen("beforeCommit", function(e) {
105
- * var num = +e.text; // Cast input type to number
105
+ * let num = +e.text; // Cast input type to number
106
106
  * if(num === num) { // Check if string can be converted to number
107
107
  * e.text = num; // Modify user input and continue commit operation (i.e. set data back to grid model)
108
108
  * } else { // User entered something other than number
@@ -120,13 +120,13 @@ import { CoralItems } from "../../tr-grid-util/es6/CoralItems.js";
120
120
  * @property {object} fieldValue object that contain text in each field
121
121
  * @property {boolean=} cancel Set to true to cancel the commit operation.
122
122
  * @example
123
- * var cep = new InCellEditingPlugin();
123
+ * let cep = new InCellEditingPlugin();
124
124
  * cep.listen("beforeRowCommit", function(e) {
125
- * var fieldValue = e.fieldValue;
126
- * for (var field in fieldValue) {
127
- * if (!fieldValue.hasOwnProperty(field)) continue;
128
- * var value = fieldValue[field];
129
- * if (checkValid(value)) { // check value is valid
125
+ * let fieldValue = e.fieldValue;
126
+ * for(let field in fieldValue) {
127
+ * if(!fieldValue.hasOwnProperty(field)) continue;
128
+ * let value = fieldValue[field];
129
+ * if(checkValid(value)) { // check value is valid
130
130
  * fieldValue[field] = value + "foo bar"; // modify text
131
131
  * } else {
132
132
  * e.cancel = true; // if not valid maybe cancel commit
@@ -1,10 +1,9 @@
1
1
  import { Ext } from "../../tr-grid-util/es6/Ext.js";
2
- import { cloneObject } from "../../tr-grid-util/es6/Util.js";
3
2
  import { ElfUtil } from "../../tr-grid-util/es6/ElfUtil.js";
4
3
  import { GridPlugin } from "../../tr-grid-util/es6/GridPlugin.js";
5
4
  import Dom from "../../tr-grid-util/es6/Dom.js";
6
5
  import { DragUI } from "../../tr-grid-util/es6/DragUI.js";
7
- import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
6
+ import { cloneObject, injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
8
7
 
9
8
  declare namespace RowDraggingPlugin {
10
9