@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.
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +5 -13
- package/fesm2015/smartbit4all-ng-client.mjs +4 -13
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +4 -12
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.19.tgz +0 -0
- package/smartbit4all-ng-client-3.0.18.tgz +0 -0
|
@@ -4325,21 +4325,13 @@ class SmartformwidgetComponent {
|
|
|
4325
4325
|
this.setDateFormControl(this.form.controls[this.widgetInstance.key], yearMonthValue, '00:00');
|
|
4326
4326
|
}
|
|
4327
4327
|
compareItems(o1, o2) {
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
if (widget.selection?.type === 'PROPERTY') {
|
|
4332
|
-
let v1 = this.truncateUri(o1);
|
|
4333
|
-
let v2 = this.truncateUri(o2);
|
|
4334
|
-
return v1 === v2;
|
|
4335
|
-
}
|
|
4336
|
-
}
|
|
4337
|
-
// default for object identity
|
|
4338
|
-
return o1 === o2;
|
|
4328
|
+
let v1 = this.truncateUri(o1);
|
|
4329
|
+
let v2 = this.truncateUri(o2);
|
|
4330
|
+
return v1 === v2;
|
|
4339
4331
|
}
|
|
4340
4332
|
truncateUri(uri) {
|
|
4341
4333
|
if (uri && typeof uri === 'string') {
|
|
4342
|
-
return uri.replace(
|
|
4334
|
+
return uri.replace(/\.v[0-9]+$/, '');
|
|
4343
4335
|
}
|
|
4344
4336
|
return uri;
|
|
4345
4337
|
}
|