@smartbit4all/ng-client 3.0.18 → 3.0.19

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.
@@ -4238,22 +4238,13 @@ class SmartformwidgetComponent {
4238
4238
  this.setDateFormControl(this.form.controls[this.widgetInstance.key], yearMonthValue, '00:00');
4239
4239
  }
4240
4240
  compareItems(o1, o2) {
4241
- var _a;
4242
- const widget = this.widgetInstance;
4243
- if (widget.type === SmartFormWidgetType.SELECT ||
4244
- widget.type === SmartFormWidgetType.SELECT_MULTIPLE) {
4245
- if (((_a = widget.selection) === null || _a === void 0 ? void 0 : _a.type) === 'PROPERTY') {
4246
- let v1 = this.truncateUri(o1);
4247
- let v2 = this.truncateUri(o2);
4248
- return v1 === v2;
4249
- }
4250
- }
4251
- // default for object identity
4252
- return o1 === o2;
4241
+ let v1 = this.truncateUri(o1);
4242
+ let v2 = this.truncateUri(o2);
4243
+ return v1 === v2;
4253
4244
  }
4254
4245
  truncateUri(uri) {
4255
4246
  if (uri && typeof uri === 'string') {
4256
- return uri.replace('.v[0-9]+', '');
4247
+ return uri.replace(/\.v[0-9]+$/, '');
4257
4248
  }
4258
4249
  return uri;
4259
4250
  }