@refinitiv-ui/efx-grid 6.0.102 → 6.0.103

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/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.102" };
3
+ window.EFX_GRID = { version: "6.0.103" };
@@ -14670,13 +14670,28 @@ RowDefinition.dispose = function(rowDef) {
14670
14670
 
14671
14671
  /** @type {string}
14672
14672
  * @private
14673
- * @const
14673
+ * @constant
14674
14674
  */
14675
14675
  const SYNAPSE_URL =
14676
14676
  "/synapse/service/suggestions/suggest/?"
14677
14677
  + "hits=1" // search only 1 result
14678
14678
  + "&profile=" + encodeURIComponent("Field Selector");
14679
14679
 
14680
+ /** @type {!RegExp}
14681
+ * @private
14682
+ * @constant
14683
+ * @description
14684
+ * ^TR. => start with TR.
14685
+ * [\w]+ => any field with string and value
14686
+ * [\(] => open bucket (
14687
+ * [\w\-\=\,]* => any property name and follow by = EX. SDATE=2011-11-11, PRIOD=123123
14688
+ * (?:EDATE|SDATE) => non-capturing group match EDATE or SDATE
14689
+ * [\w\-\=\,]+ => another propertie param
14690
+ * [\)]$ => end with only )
14691
+ * i => for match both upper and lower cases
14692
+ */
14693
+ const TimeSeriesRegEx = /^TR\.[\w]+\([\w\-\=\,]*(?:EDATE|SDATE)\=+[\w\-\=\,]*[ \w]*\)$/i;
14694
+
14680
14695
  /* @namespace */
14681
14696
  let FieldDefinition = {};
14682
14697
 
@@ -14855,10 +14870,10 @@ FieldDefinition.hasFieldInfo = function(field) {
14855
14870
  /** @public
14856
14871
  * @function
14857
14872
  * @param {string} field
14858
- * @return {Object}
14873
+ * @return {Array}
14859
14874
  */
14860
14875
  FieldDefinition.getTimeSeriesChildren = function(field) {
14861
- return FieldDefinition._timeSeriesChildren[field];
14876
+ return FieldDefinition._timeSeriesChildren[field] || null;
14862
14877
  };
14863
14878
  /** @public
14864
14879
  * @function
@@ -14919,7 +14934,7 @@ FieldDefinition.isRealTimeField = function(field) {
14919
14934
  return false;
14920
14935
  }
14921
14936
 
14922
- if(FieldDefinition.isAdc(field)) {
14937
+ if(FieldDefinition.isAdc(field)) { // Note that all TimeSeries fields are ADC field
14923
14938
  return false;
14924
14939
  }
14925
14940
 
@@ -14931,10 +14946,6 @@ FieldDefinition.isRealTimeField = function(field) {
14931
14946
  return false;
14932
14947
  }
14933
14948
 
14934
- if(FieldDefinition.isTimeSeries(field)) {
14935
- return false;
14936
- }
14937
-
14938
14949
  return FieldDefinition.getFieldProperty(field, "IsRealtimeField") !== false;
14939
14950
  };
14940
14951
 
@@ -14963,21 +14974,10 @@ FieldDefinition.isTimeSeries = function (field) {
14963
14974
  // We can check time series using a cache to avoid duplicating checks in regular expressions.
14964
14975
  let timeSeriesField = FieldDefinition.getFieldProperty(field, "timeSeries");
14965
14976
  if (timeSeriesField != null) {
14966
- return timeSeriesField;
14977
+ return timeSeriesField ? true : false;
14967
14978
  }
14968
14979
 
14969
- /*
14970
- ^TR. => start with TR.
14971
- [\w]+ => any field with string and value
14972
- [\(] => open bucket (
14973
- [\w\-\=\,]* => any property name and follow by = EX. SDATE=2011-11-11, PRIOD=123123
14974
- (?:EDATE|SDATE ) => non-capturing group match EDATE or SDATE
14975
- [\w\-\=\,]+ => another propertie param
14976
- [\)]$ => end with only )
14977
- i => for match both upper and lower cases
14978
- */
14979
- let timeSeriesRegex = /^TR\.[\w]+\([\w\-\=\,]*(?:EDATE|SDATE)\=+[\w\-\=\,]*[ \w]*\)$/i;
14980
- return timeSeriesRegex.test(field);
14980
+ return TimeSeriesRegEx.test(field);
14981
14981
  };
14982
14982
 
14983
14983
  /**