@refinitiv-ui/efx-grid 6.0.80 → 6.0.81

Sign up to get free protection for your applications and to get access to all the features.
package/lib/grid/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import {Grid} from "./lib/efx-grid.js";
2
2
  export {Grid}
3
- window.EFX_GRID = { version: "6.0.80" };
3
+ window.EFX_GRID = { version: "6.0.81" };
@@ -1394,21 +1394,21 @@ CheckboxPlugin.prototype._onCheckboxChanged = function (e, toggling) {
1394
1394
  }
1395
1395
  }
1396
1396
 
1397
+ var checked = newState !== "unchecked";
1397
1398
  if(changeRange) {
1398
1399
  this.setCheckStates(changeRange, !e.altKey);
1399
1400
  } else {
1400
- var bool = newState !== "unchecked";
1401
1401
  var subGroup = dv.getGroupByRowId(rid);
1402
1402
  if (subGroup) {
1403
1403
  var rowMemberIds = this._getRowMemberIdsOfSubgroup(dv, subGroup);
1404
- this._setColumnData(dv, this._checkboxField, bool, rowMemberIds);
1404
+ this._setColumnData(dv, this._checkboxField, checked, rowMemberIds);
1405
1405
 
1406
1406
  // WORKAROUND: to force group move to next state from partial state
1407
1407
  if (newState === 'checked' && chkbox._prevState === 'partial') {
1408
1408
  chkbox._forceNewState = newState;
1409
1409
  }
1410
1410
  } else {
1411
- this._setData(dv, rowIndex, this._checkboxField, bool);
1411
+ this._setData(dv, rowIndex, this._checkboxField, checked);
1412
1412
  }
1413
1413
  }
1414
1414
  }
@@ -1419,7 +1419,7 @@ CheckboxPlugin.prototype._onCheckboxChanged = function (e, toggling) {
1419
1419
  if (this.hasListener("clicked")) {
1420
1420
  pos["checkbox"] = chkbox;
1421
1421
  pos["checkState"] = newState;
1422
- pos["checked"] = chkbox.checked;
1422
+ pos["checked"] = checked;
1423
1423
  this._dispatch("clicked", pos);
1424
1424
  }
1425
1425
 
@@ -30,7 +30,9 @@ declare namespace RowFilteringPlugin {
30
30
  lang?: string|null,
31
31
  rawDataAccessor?: ((...params: any[]) => any)|null,
32
32
  formattedDataAccessor?: ((...params: any[]) => any)|null,
33
- sortLogic?: ((...params: any[]) => any)|null
33
+ sortLogic?: ((...params: any[]) => any)|null,
34
+ itemList?: any[]|null,
35
+ additionalItems?: any[]|null
34
36
  };
35
37
 
36
38
  type Options = {
@@ -89,8 +89,10 @@ The expression can take various forms:<br>
89
89
  * @property {string=} fieldDataType data type of column
90
90
  * @property {string=} lang dialog language
91
91
  * @property {Function=} rawDataAccessor In case you have custom data type for the specified field, data getter is needed to retrieve raw value for filtering
92
- * @property {Function=} formattedDataAccessor In case you have custom data type for the specified field, data getter is needed to retrieve formatted value for display
93
- * @property {Function=} sortLogic sorting function for sort autosuggest list in filter dialog, the values for comparison are raw value not a formatted value
92
+ * @property {Function=} formattedDataAccessor This function will be called on each raw data, allowing formatting data to be displayed on the filter item list
93
+ * @property {Function=} sortLogic This function for sorting filter item list in the dialog. The comparison will perform on raw values, and not formatted values
94
+ * @property {Array=} itemList Item list to be shown in the dialog. If this is not specified, the list will be collected from existing data on the grid
95
+ * @property {Array=} additionalItems Additional items to be put on the itemList
94
96
  */
95
97
 
96
98
  /** @typedef {Object} RowFilteringPlugin~Options
@@ -1662,109 +1664,206 @@ RowFilteringPlugin.prototype._getDataTable = function (dv) {
1662
1664
  return dt;
1663
1665
  };
1664
1666
  /** @public
1667
+ * @deprecated
1665
1668
  * @ignore
1666
1669
  * @param {string} field A field name for getting raw value from row data
1667
1670
  * @param {Function=} formatter A formatter that takes row data, retrieves data, and modified the data for display.
1668
1671
  * @param {string=} fmtField A field name to be used instead of formatter for getting formatted value
1669
1672
  * @param {Function=} rawDataAccessor Data getter to retrieve raw value
1670
1673
  * @param {Function=} formattedDataAccessor Data getter to retrieve formatted value. This paramter will override formatted and fmtField parameters
1671
- * @param {Function=} filterFuncs
1674
+ * @param {Array.<Function>=} filterFuncs
1672
1675
  * @param {Object=} selectedItems
1673
1676
  * @return {Object} Object that maps formatted value to array of raw values
1674
1677
  */
1675
1678
 
1676
1679
 
1677
1680
  RowFilteringPlugin.prototype.getUniqueValues = function (field, formatter, fmtField, rawDataAccessor, formattedDataAccessor, filterFuncs, selectedItems) {
1681
+ var dialogConfig = {
1682
+ rawDataAccessor: rawDataAccessor,
1683
+ formattedDataAccessor: formattedDataAccessor
1684
+ };
1685
+ return this._getUniqueValues(field, dialogConfig, formatter, filterFuncs, selectedItems);
1686
+ };
1687
+ /** @private
1688
+ * @param {*} formattedVal
1689
+ * @param {*} rawVal
1690
+ * @returns {string}
1691
+ */
1692
+
1693
+
1694
+ var _valueToString = function _valueToString(formattedVal, rawVal) {
1695
+ if (typeof formattedVal === "string") {
1696
+ return formattedVal;
1697
+ }
1698
+
1699
+ if (formattedVal) {
1700
+ if (_typeof(formattedVal) != "object") {
1701
+ return rawVal + "";
1702
+ } else if (formattedVal instanceof Date) {
1703
+ return formattedVal.toLocaleString("en-GB");
1704
+ } else {
1705
+ // Object type cannot be converted to string
1706
+ return "";
1707
+ }
1708
+ } else if (formattedVal === 0) {
1709
+ return "0";
1710
+ } else if (formattedVal === false) {
1711
+ return "false";
1712
+ }
1713
+
1714
+ return "";
1715
+ };
1716
+ /** @private
1717
+ * @param {Object} selectedItems
1718
+ * @param {string} formattedVal
1719
+ * @param {Object} row
1720
+ * @param {!Array.<Function>} filterFuncs A selector function that execute on each item to determine the selection
1721
+ */
1722
+
1723
+
1724
+ var _collectSelectedItem = function _collectSelectedItem(selectedItems, formattedVal, row, filterFuncs) {
1725
+ if (filterFuncs) {
1726
+ if (!selectedItems[formattedVal]) {
1727
+ for (var i = filterFuncs.length; --i >= 0;) {
1728
+ if (!filterFuncs[i](row)) {
1729
+ return;
1730
+ }
1731
+ }
1732
+
1733
+ selectedItems[formattedVal] = true;
1734
+ }
1735
+ }
1736
+ };
1737
+ /** @private
1738
+ * @param {Object} uniqueValues
1739
+ * @param {string} formattedVal
1740
+ * @param {*} rawVal
1741
+ */
1742
+
1743
+
1744
+ var _collectUniqueValue = function _collectUniqueValue(uniqueValues, formattedVal, rawVal) {
1745
+ var rawValues = uniqueValues[formattedVal];
1746
+
1747
+ if (rawValues) {
1748
+ if (rawValues.indexOf(rawVal) < 0) {
1749
+ // Check for unique raw values
1750
+ rawValues.push(rawVal);
1751
+ }
1752
+ } else {
1753
+ // The first unique formatted value detected
1754
+ uniqueValues[formattedVal] = [rawVal];
1755
+ }
1756
+ };
1757
+ /** @private
1758
+ * @param {string} field A field name for getting raw value from row data
1759
+ * @param {!Object} dialogConfig
1760
+ * @param {Function} formatter A formatter that takes row data, retrieves data, and modified the data for display.
1761
+ * @param {Array.<Function>} filterFuncs A selector function that execute on each item to determine the selection
1762
+ * @param {Object} selectedItems
1763
+ * @return {Object} Object that maps formatted value to array of raw values
1764
+ */
1765
+
1766
+
1767
+ RowFilteringPlugin.prototype._getUniqueValues = function (field, dialogConfig, formatter, filterFuncs, selectedItems) {
1678
1768
  if (!field) {
1679
1769
  return null;
1680
1770
  }
1681
1771
 
1682
- var dvs = this._getAvailableDataViews();
1683
-
1684
- var dts = dvs.map(this._getDataTable);
1685
- var tblCount = dts.length;
1772
+ var rawDataAccessor = dialogConfig.rawDataAccessor || null;
1773
+ var formattedDataAccessor = dialogConfig.formattedDataAccessor || null;
1774
+ var userItemList = dialogConfig.itemList;
1686
1775
  var uniqueValues = {};
1776
+ var formattedVal = null;
1777
+ var rawVal = null;
1687
1778
 
1688
- for (var t = 0; t < tblCount; ++t) {
1689
- var rows = dts[t].getAllRowData();
1690
- var rowCount = rows.length;
1779
+ if (!Array.isArray(userItemList)) {
1780
+ userItemList = null;
1691
1781
 
1692
- for (var r = 0; r < rowCount; ++r) {
1693
- var row = rows[r];
1782
+ var dvs = this._getAvailableDataViews();
1694
1783
 
1695
- if (this._rowGetter) {
1696
- row = this._rowGetter(row);
1697
- }
1784
+ var dts = dvs.map(this._getDataTable);
1785
+ var tblCount = dts.length;
1698
1786
 
1699
- if (this._rowTransform) {
1700
- row = this._rowTransform(row);
1701
- }
1787
+ for (var t = 0; t < tblCount; ++t) {
1788
+ var rows = dts[t].getAllRowData();
1789
+ var rowCount = rows.length;
1702
1790
 
1703
- var fieldVal = row[field];
1704
- var rawVal = fieldVal;
1791
+ for (var r = 0; r < rowCount; ++r) {
1792
+ var row = rows[r];
1705
1793
 
1706
- if (rawDataAccessor) {
1707
- rawVal = rawDataAccessor(rawVal);
1708
- }
1794
+ if (this._rowGetter) {
1795
+ row = this._rowGetter(row);
1796
+ }
1709
1797
 
1710
- if (!rawVal) {
1711
- // Only valid values are accepted
1712
- if (rawVal !== 0 && rawVal !== false) {
1713
- continue;
1798
+ if (this._rowTransform) {
1799
+ row = this._rowTransform(row);
1714
1800
  }
1715
- }
1716
1801
 
1717
- var formattedVal = rawVal;
1802
+ var fieldVal = row[field];
1803
+ rawVal = fieldVal;
1718
1804
 
1719
- if (formattedDataAccessor) {
1720
- formattedVal = formattedDataAccessor(fieldVal); // The function takes data value
1721
- } else if (formatter) {
1722
- formattedVal = formatter(row); // The function takes row data
1723
- } else if (fmtField) {
1724
- formattedVal = row[fmtField];
1725
- }
1805
+ if (rawDataAccessor) {
1806
+ rawVal = rawDataAccessor(rawVal);
1807
+ }
1726
1808
 
1727
- if (typeof formattedVal != "string") {
1728
- if (formattedVal) {
1729
- if (_typeof(formattedVal) != "object") {
1730
- formattedVal = rawVal + "";
1731
- } else if (formattedVal instanceof Date) {
1732
- formattedVal = formattedVal.toLocaleString("en-GB");
1733
- } else {
1734
- // Object type cannot be converted to string
1735
- formattedVal = "";
1809
+ if (!rawVal) {
1810
+ // Only valid values are accepted
1811
+ if (rawVal !== 0 && rawVal !== false) {
1812
+ continue;
1736
1813
  }
1737
- } else if (formattedVal === 0) {
1738
- formattedVal = "0";
1739
- } else if (formattedVal === false) {
1740
- formattedVal = "false";
1741
1814
  }
1742
- }
1743
1815
 
1744
- if (!formattedVal) {
1745
- continue;
1746
- }
1816
+ formattedVal = rawVal;
1747
1817
 
1748
- if (filterFuncs) {
1749
- if (!selectedItems[formattedVal]) {
1750
- selectedItems[formattedVal] = RowFilteringPlugin._getFilteredValue(row, filterFuncs);
1818
+ if (formattedDataAccessor) {
1819
+ formattedVal = formattedDataAccessor(fieldVal); // The function takes data value
1820
+ } else if (formatter) {
1821
+ formattedVal = formatter(row); // The function takes row data
1751
1822
  }
1752
- }
1753
1823
 
1754
- var rawValues = uniqueValues[formattedVal];
1824
+ formattedVal = _valueToString(formattedVal, rawVal);
1755
1825
 
1756
- if (rawValues) {
1757
- if (rawValues.indexOf(rawVal) < 0) {
1758
- // Check for unique raw values
1759
- rawValues.push(rawVal);
1826
+ if (formattedVal) {
1827
+ _collectSelectedItem(selectedItems, formattedVal, row, filterFuncs);
1828
+
1829
+ _collectUniqueValue(uniqueValues, formattedVal, rawVal);
1760
1830
  }
1761
- } else {
1762
- // The first unique formatted value detected
1763
- uniqueValues[formattedVal] = [rawVal];
1764
1831
  }
1765
1832
  }
1766
1833
  }
1767
1834
 
1835
+ var additionalItems = dialogConfig.additionalItems;
1836
+
1837
+ if (Array.isArray(additionalItems)) {
1838
+ if (userItemList) {
1839
+ userItemList = userItemList.concat(additionalItems);
1840
+ } else {
1841
+ userItemList = additionalItems;
1842
+ }
1843
+ }
1844
+
1845
+ var dummyRow = {};
1846
+ var userItemCount = userItemList ? userItemList.length : 0;
1847
+
1848
+ for (var i = 0; i < userItemCount; ++i) {
1849
+ rawVal = dummyRow[field] = userItemList[i];
1850
+ formattedVal = rawVal;
1851
+
1852
+ if (formattedDataAccessor) {
1853
+ formattedVal = formattedDataAccessor(rawVal);
1854
+ } else if (formatter) {
1855
+ formattedVal = formatter(dummyRow);
1856
+ }
1857
+
1858
+ formattedVal = _valueToString(formattedVal, rawVal);
1859
+
1860
+ if (formattedVal) {
1861
+ _collectSelectedItem(selectedItems, formattedVal, dummyRow, filterFuncs);
1862
+
1863
+ _collectUniqueValue(uniqueValues, formattedVal, rawVal);
1864
+ }
1865
+ }
1866
+
1768
1867
  return uniqueValues;
1769
1868
  };
1770
1869
  /** @private
@@ -1792,23 +1891,6 @@ RowFilteringPlugin._createDialog = function () {
1792
1891
  };
1793
1892
  /** @private
1794
1893
  * @function
1795
- * @param {Object} rowData
1796
- * @param {!Array.<Function>} filters
1797
- * @returns {boolean}
1798
- */
1799
-
1800
-
1801
- RowFilteringPlugin._getFilteredValue = function (rowData, filters) {
1802
- for (var i = filters.length; --i >= 0;) {
1803
- if (!filters[i](rowData)) {
1804
- return false;
1805
- }
1806
- }
1807
-
1808
- return true;
1809
- };
1810
- /** @private
1811
- * @function
1812
1894
  * @param {Array} exp
1813
1895
  * @param {string} field
1814
1896
  * @param {Function} formatter
@@ -1996,8 +2078,8 @@ RowFilteringPlugin.prototype.openDialog = function (colIndex, runtimeDialogOptio
1996
2078
  var cfo = this._initColumnFilterOption(colIndex); // colData["rowFiltering"]["filterOption"]
1997
2079
 
1998
2080
 
1999
- var rawDataAccessor = cfo._rawDataAccessor = dialogConfig.rawDataAccessor || null;
2000
- var formattedDataAccessor = cfo._formattedDataAccessor = dialogConfig.formattedDataAccessor || null;
2081
+ cfo._rawDataAccessor = dialogConfig.rawDataAccessor || null;
2082
+ cfo._formattedDataAccessor = dialogConfig.formattedDataAccessor || null;
2001
2083
  var sortLogic = dialogConfig.sortLogic || null; // Populate data for filter dialog based on existing states
2002
2084
 
2003
2085
  var formatter = this._getFormatter(colIndex);
@@ -2025,7 +2107,9 @@ RowFilteringPlugin.prototype.openDialog = function (colIndex, runtimeDialogOptio
2025
2107
  }
2026
2108
 
2027
2109
  var selectedItems = {};
2028
- var uniqueValues = cfo.uniqueValues = this.getUniqueValues(field, formatter, "", rawDataAccessor, formattedDataAccessor, filterFuncs, selectedItems);
2110
+
2111
+ var uniqueValues = cfo.uniqueValues = this._getUniqueValues(field, dialogConfig, formatter, filterFuncs, selectedItems);
2112
+
2029
2113
  var keys = Object.keys(uniqueValues);
2030
2114
 
2031
2115
  if (sortLogic) {
@@ -2136,6 +2220,18 @@ RowFilteringPlugin._overrideConfig = function (config, userConfig) {
2136
2220
  // Allow null value
2137
2221
  config.sortLogic = sortLogic;
2138
2222
  }
2223
+
2224
+ var itemList = userConfig["itemList"];
2225
+
2226
+ if (itemList != null) {
2227
+ config.itemList = itemList;
2228
+ }
2229
+
2230
+ var additionalItems = userConfig["additionalItems"];
2231
+
2232
+ if (additionalItems != null) {
2233
+ config.additionalItems = additionalItems;
2234
+ }
2139
2235
  };
2140
2236
  /** @private
2141
2237
  * @param {number} colIndex
@@ -25,7 +25,7 @@ import { injectCss, prettifyCss } from "../../tr-grid-util/es6/Util.js";
25
25
  * @property {(boolean|number|Array.<number>)=} indentSize Use array to define indent for each group level. Use boolean to turn on or off indentation. Use number to define incremental step.
26
26
  * @property {boolean=} colorTag If not specified, the color tag will be disabled when using extension without halo theme.
27
27
  * @property {Object=} predefinedColors Predefined color object map for color tag
28
- * @property {Object=} groupColors - Deprecated, the object map of group ID and predefined color.
28
+ * @property {Object=} groupColors - The object map of group ID and predefined color.
29
29
  * @property {boolean=} defaultCollapse=false Collapsing groups by default when a group is created
30
30
  * @property {Function=} clicked=null Event handler when user clicks on arrows or cells
31
31
  * @property {Function=} groupAdded=null Event handler
@@ -1416,7 +1416,22 @@ RowGroupingPlugin.prototype._updateHeader = function (settings, firstRowIndex, l
1416
1416
  indentSize = maxColWidth;
1417
1417
  }
1418
1418
 
1419
- var groupColor = currentGroup.getGroupColor();
1419
+ var groupColor;
1420
+ if(currentGroup.getGroupColor) {
1421
+ groupColor = currentGroup.getGroupColor();
1422
+ } else { // Backward compatibility
1423
+ if (this._groupColors) {
1424
+ // TODO: Need better method to find the first level parent's group id
1425
+ var rootGroup = currentGroup ? currentGroup : dataSource.getGroup(rowId); // Slow
1426
+ if (curGroupLevel > 1) {
1427
+ for (var i = curGroupLevel; i > 1; i--) {
1428
+ rootGroup = rootGroup.getDataSource();
1429
+ }
1430
+ }
1431
+ var groupId = rootGroup.getGroupId();
1432
+ groupColor = this._groupColors[groupId];
1433
+ }
1434
+ }
1420
1435
  arg.colorTagClass = groupColor;
1421
1436
  arg.indentSize = indentSize;
1422
1437
  if (groupView) {
@@ -24,10 +24,7 @@ declare namespace TextFormattingPlugin {
24
24
  formatLogic?: ((...params: any[]) => any)|null
25
25
  };
26
26
 
27
- type ColumnOptions = {
28
- formatType?: (string|TextFormattingPlugin.FormatOptions)|null,
29
- autoTextFormatting?: boolean|null
30
- };
27
+ type ColumnOptions = TextFormattingPlugin.FormatOptions|null;
31
28
 
32
29
  type GridOptions = {
33
30
  autoTextFormatting?: boolean|null
@@ -40,10 +40,8 @@ import { DateTime } from '../../tr-grid-util/es6/DateTime.js';
40
40
  * @property {Function=} formatLogic=null If specified all default formatting will be prevented and replaced by the given function. This should be used when the column has custom rendering. The function must retrieve, format, and insert the data with the provided arguments (i.e., TextFormattingPlugin~FormatLogicArguments).
41
41
  */
42
42
 
43
- /** @typedef {Object} TextFormattingPlugin~ColumnOptions
43
+ /** @typedef {TextFormattingPlugin~FormatOptions} TextFormattingPlugin~ColumnOptions
44
44
  * @description Available options that can be specified on the column configuration object
45
- * @property {(string|TextFormattingPlugin~FormatOptions)=} formatType Format options or a shorthand text (e.g. number, scaled, percent, and datetime).
46
- * @property {boolean=} autoTextFormatting=true If disabled, the extension's automatic formatting will not be triggered, including `formatLogic`
47
45
  */
48
46
 
49
47
  /** @typedef {Object} TextFormattingPlugin~GridOptions
@@ -36,6 +36,41 @@ declare namespace Grid {
36
36
  productId?: string|null
37
37
  };
38
38
 
39
+ type GridConfigObject = ExtensionOptions & {
40
+ columns?: (ColumnDefinition.Options|string)[]|null,
41
+ defaultColumnOptions?: ColumnDefinition.Options|null,
42
+ rows?: (RowDefinition.Options)[]|null,
43
+ scrollbar?: boolean|null,
44
+ linearWheelScrolling?: boolean|null,
45
+ stepScroll?: boolean|null,
46
+ autoHideScrollbar?: boolean|null,
47
+ pageSize?: string|null,
48
+ rowHeight?: number|null,
49
+ headerRowHeight?: number|null,
50
+ rowHighlighting?: boolean|null,
51
+ autoLayoutUpdate?: (boolean|number)|null,
52
+ rowVirtualization?: boolean|null,
53
+ columnVirtualization?: boolean|null,
54
+ topFreezingCount?: (number|null|boolean)|null,
55
+ bottomFreezingCount?: (number|null)|null,
56
+ borders?: boolean|null,
57
+ gridlines?: boolean|null,
58
+ verticalLines?: boolean|null,
59
+ contentVerticalLines?: boolean|null,
60
+ horizontalLines?: boolean|null,
61
+ contentRightPadding?: number|null,
62
+ contentBottomPadding?: number|null,
63
+ dataConflationRate?: number|null,
64
+ textSelect?: boolean|null,
65
+ lang?: string|null,
66
+ formulaEngine?: boolean|null,
67
+ adcPollingInterval?: number|null,
68
+ fieldCaching?: boolean|null,
69
+ timeSeriesExpansion?: boolean|null,
70
+ childDataField?: string|null,
71
+ sorting?: SortableTitlePlugin.Options|null
72
+ };
73
+
39
74
  type GridOptions = ExtensionOptions & {
40
75
  columns?: (ColumnDefinition.Options|string)[]|null,
41
76
  defaultColumnOptions?: ColumnDefinition.Options|null,
@@ -130,7 +165,7 @@ declare class Grid extends EventDispatcher {
130
165
 
131
166
  public initialize(gridOption?: Grid.GridOptions|null): void;
132
167
 
133
- public getConfigObject(gridOptions?: any): any;
168
+ public getConfigObject(gridOptions?: any): Grid.GridConfigObject;
134
169
 
135
170
  public setLocale(lang: string): void;
136
171
 
@@ -30,7 +30,9 @@ declare namespace RowFilteringPlugin {
30
30
  lang?: string|null,
31
31
  rawDataAccessor?: ((...params: any[]) => any)|null,
32
32
  formattedDataAccessor?: ((...params: any[]) => any)|null,
33
- sortLogic?: ((...params: any[]) => any)|null
33
+ sortLogic?: ((...params: any[]) => any)|null,
34
+ itemList?: any[]|null,
35
+ additionalItems?: any[]|null
34
36
  };
35
37
 
36
38
  type Options = {
@@ -17,17 +17,13 @@ declare namespace TextFormattingPlugin {
17
17
  percentSign?: boolean|null,
18
18
  scalingUnit?: string|null,
19
19
  multiplyBy100?: boolean|null,
20
- mutiplyBy100?: boolean|null,
21
20
  dateTimeFormat?: string|null,
22
21
  useUTCTime?: boolean|null,
23
22
  autoTextFormatting?: boolean|null,
24
23
  formatLogic?: ((...params: any[]) => any)|null
25
24
  };
26
25
 
27
- type ColumnOptions = {
28
- formatType?: (string|TextFormattingPlugin.FormatOptions)|null,
29
- autoTextFormatting?: boolean|null
30
- };
26
+ type ColumnOptions = TextFormattingPlugin.FormatOptions|null;
31
27
 
32
28
  type GridOptions = {
33
29
  autoTextFormatting?: boolean|null
package/lib/versions.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "@grid/zoom": "1.0.11",
8
8
  "tr-grid-auto-tooltip": "1.1.6",
9
9
  "tr-grid-cell-selection": "1.0.34",
10
- "tr-grid-checkbox": "1.0.62",
10
+ "tr-grid-checkbox": "1.0.63",
11
11
  "tr-grid-column-fitter": "1.0.39",
12
12
  "tr-grid-column-formatting": "0.9.35",
13
13
  "tr-grid-column-grouping": "1.0.57",
@@ -24,14 +24,14 @@
24
24
  "tr-grid-percent-bar": "1.0.22",
25
25
  "tr-grid-range-bar": "2.0.6",
26
26
  "tr-grid-row-dragging": "1.0.31",
27
- "tr-grid-row-filtering": "1.0.65",
28
- "tr-grid-row-grouping": "1.0.85",
27
+ "tr-grid-row-filtering": "1.0.66",
28
+ "tr-grid-row-grouping": "1.0.86",
29
29
  "tr-grid-row-selection": "1.0.26",
30
30
  "tr-grid-rowcoloring": "1.0.25",
31
- "tr-grid-textformatting": "1.0.46",
31
+ "tr-grid-textformatting": "1.0.47",
32
32
  "tr-grid-titlewrap": "1.0.20",
33
33
  "@grid/formatters": "1.0.51",
34
34
  "@grid/column-selection-dialog": "4.0.56",
35
- "@grid/filter-dialog": "4.0.61",
35
+ "@grid/filter-dialog": "4.0.62",
36
36
  "@grid/column-format-dialog": "4.0.44"
37
37
  }
package/package.json CHANGED
@@ -56,7 +56,7 @@
56
56
  "./extensions": "./lib/index.js",
57
57
  "./window-exporter": "./lib/window-exporter.js",
58
58
  "./grid": "./lib/grid/lib/efx-grid.js",
59
- "./formatters/": "./lib/formatters/es6/",
59
+ "./formatters/*": "./lib/formatters/es6/*.js",
60
60
  "./utils": "./lib/utils/index.js"
61
61
  },
62
62
  "peerDependencies": {
@@ -66,5 +66,5 @@
66
66
  "publishConfig": {
67
67
  "access": "public"
68
68
  },
69
- "version": "6.0.80"
69
+ "version": "6.0.81"
70
70
  }