@refinitiv-ui/efx-grid 6.0.92 → 6.0.94
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/filter-dialog/lib/filter-dialog.js +1 -0
- package/lib/formatters/es6/CoralButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/CoralButtonFormatter.js +9 -4
- package/lib/formatters/es6/CoralCheckboxFormatter.js +10 -5
- package/lib/formatters/es6/CoralComboBoxFormatter.js +13 -12
- package/lib/formatters/es6/CoralIconFormatter.d.ts +0 -2
- package/lib/formatters/es6/CoralIconFormatter.js +9 -4
- package/lib/formatters/es6/CoralInputFormatter.js +9 -4
- package/lib/formatters/es6/CoralRadioButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/CoralRadioButtonFormatter.js +20 -15
- package/lib/formatters/es6/CoralSelectFormatter.js +12 -7
- package/lib/formatters/es6/CoralToggleFormatter.js +4 -4
- package/lib/formatters/es6/DuplexEmeraldDateTimePickerFormatter.js +20 -20
- package/lib/formatters/es6/EFButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/EFButtonFormatter.js +9 -4
- package/lib/formatters/es6/EFCheckboxFormatter.js +10 -5
- package/lib/formatters/es6/EFComboBoxFormatter.js +17 -7
- package/lib/formatters/es6/EFDateTimePickerFormatter.js +11 -6
- package/lib/formatters/es6/EFIconFormatter.d.ts +0 -2
- package/lib/formatters/es6/EFIconFormatter.js +9 -4
- package/lib/formatters/es6/EFNumberFieldFormatter.js +9 -4
- package/lib/formatters/es6/EFRadioButtonFormatter.d.ts +0 -2
- package/lib/formatters/es6/EFRadioButtonFormatter.js +25 -15
- package/lib/formatters/es6/EFSelectFormatter.js +17 -7
- package/lib/formatters/es6/EFTextFieldFormatter.js +4 -4
- package/lib/formatters/es6/EFToggleFormatter.js +4 -4
- package/lib/formatters/es6/EmeraldDateTimePickerFormatter.js +6 -6
- package/lib/formatters/es6/FormatterBuilder.js +32 -32
- package/lib/formatters/es6/NumericInputFormatter.js +7 -7
- package/lib/formatters/es6/PercentBarFormatter.js +5 -5
- package/lib/formatters/es6/SimpleImageFormatter.js +3 -3
- package/lib/formatters/es6/SimpleInputFormatter.js +4 -4
- package/lib/formatters/es6/SimpleLinkFormatter.js +4 -4
- package/lib/formatters/es6/SimpleTickerFormatter.js +5 -5
- package/lib/formatters/es6/SimpleToggleFormatter.js +16 -16
- package/lib/formatters/es6/TextFormatter.js +4 -4
- package/lib/grid/index.js +1 -1
- package/lib/tr-grid-cell-selection/es6/CellSelection.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-row-grouping/es6/RowGrouping.js +139 -137
- package/lib/tr-grid-row-selection/es6/RowSelection.js +260 -279
- 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/DragUI.js +1 -1
- 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/ColumnGrouping.d.ts +1 -2
- package/lib/types/es6/RowDragging.d.ts +1 -2
- package/lib/versions.json +14 -14
- 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
|
|