@smartbit4all/ng-client 3.1.3 → 3.1.4

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.
@@ -22,6 +22,7 @@ import * as i20 from '@angular/forms';
22
22
  import { FormGroup, FormControl, Validators, NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
23
23
  import { ENTER, COMMA } from '@angular/cdk/keycodes';
24
24
  import moment from 'moment';
25
+ import { deepEqual } from 'fast-equals';
25
26
  import * as i3$2 from '@angular/material/form-field';
26
27
  import { MatFormFieldModule } from '@angular/material/form-field';
27
28
  import * as i6 from '@angular/material/autocomplete';
@@ -5007,16 +5008,13 @@ class SmartformwidgetComponent {
5007
5008
  if (obj && typeof obj === 'string') {
5008
5009
  return obj.replace(/\.v[0-9]+$/, '');
5009
5010
  }
5010
- if (obj && typeof obj === 'object') {
5011
- return JSON.stringify(obj);
5012
- }
5013
5011
  return obj;
5014
5012
  }
5015
5013
  // calling this.truncateUri didn't work
5016
5014
  // TODO: use widget.selection.parameter for ignoreUriVersion / strictUriComparison;
5017
5015
  let v1 = convert(o1);
5018
5016
  let v2 = convert(o2);
5019
- return v1 === v2;
5017
+ return deepEqual(v1, v2);
5020
5018
  }
5021
5019
  truncateUri(uri) {
5022
5020
  if (uri && typeof uri === 'string') {