tuain-ng-forms-lib 13.0.3 → 13.0.6

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.
@@ -1006,7 +1006,13 @@ class TableRecordData {
1006
1006
  if (columnDef && columnDef?.visible && this.recordData.hasOwnProperty(fieldCode)) {
1007
1007
  for (const word of words) {
1008
1008
  const term = word.toUpperCase();
1009
- const fieldValue = this.recordData[fieldCode];
1009
+ let fieldValue;
1010
+ if (columnDef.fieldType.toUpper().includes('DATE')) {
1011
+ fieldValue = this.recordData[fieldCode].substring(0, 16);
1012
+ }
1013
+ else {
1014
+ fieldValue = this.recordData[fieldCode];
1015
+ }
1010
1016
  if (fieldValue.toString().toUpperCase().includes(term)) {
1011
1017
  return true;
1012
1018
  }