@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.
- package/lib/filter-dialog/lib/filter-dialog.js +1 -0
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-checkbox/es6/Checkbox.js +268 -268
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.d.ts +1 -2
- package/lib/tr-grid-column-grouping/es6/ColumnGrouping.js +36 -36
- package/lib/tr-grid-column-stack/es6/ColumnStack.js +279 -279
- package/lib/tr-grid-conditional-coloring/es6/ConditionalColoring.js +227 -207
- package/lib/tr-grid-in-cell-editing/es6/InCellEditing.js +11 -11
- package/lib/tr-grid-row-dragging/es6/RowDragging.d.ts +1 -2
- package/lib/tr-grid-row-dragging/es6/RowDragging.js +120 -121
- package/lib/tr-grid-util/es6/CellPainter.js +2 -13
- package/lib/tr-grid-util/es6/DateTime.js +2 -2
- package/lib/tr-grid-util/es6/Delay.d.ts +3 -3
- package/lib/tr-grid-util/es6/Delay.js +13 -2
- package/lib/tr-grid-util/es6/FilterBuilder.js +1 -2
- package/lib/tr-grid-util/es6/GridPlugin.js +0 -1
- package/lib/tr-grid-util/es6/MultiTableManager.js +4 -13
- package/lib/tr-grid-util/es6/NumberFormatter.js +1 -1
- package/lib/tr-grid-util/es6/TextHighlighter.js +3 -3
- package/lib/types/es6/RowDragging.d.ts +1 -2
- package/lib/versions.json +10 -10
- package/package.json +1 -1
@@ -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
|
-
*
|
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
|
-
*
|
76
|
+
* let cep = new InCellEditingPlugin();
|
77
77
|
* cep.listen("editorOpened", function(e) {
|
78
|
-
*
|
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
|
-
*
|
103
|
+
* let cep = new InCellEditingPlugin();
|
104
104
|
* cep.listen("beforeCommit", function(e) {
|
105
|
-
*
|
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
|
-
*
|
123
|
+
* let cep = new InCellEditingPlugin();
|
124
124
|
* cep.listen("beforeRowCommit", function(e) {
|
125
|
-
*
|
126
|
-
* for
|
127
|
-
* if
|
128
|
-
*
|
129
|
-
* if
|
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
|
|