@smartbit4all/ng-client 3.0.18 → 3.0.20
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 +11 -12
- package/fesm2015/smartbit4all-ng-client.mjs +10 -12
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +10 -11
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.20.tgz +0 -0
- package/smartbit4all-ng-client-3.0.18.tgz +0 -0
|
@@ -4238,22 +4238,20 @@ class SmartformwidgetComponent {
|
|
|
4238
4238
|
this.setDateFormControl(this.form.controls[this.widgetInstance.key], yearMonthValue, '00:00');
|
|
4239
4239
|
}
|
|
4240
4240
|
compareItems(o1, o2) {
|
|
4241
|
-
|
|
4242
|
-
|
|
4243
|
-
if (
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
}
|
|
4241
|
+
// calling this.truncateUri didn't work
|
|
4242
|
+
let v1 = o1;
|
|
4243
|
+
if (o1 && typeof o1 === 'string') {
|
|
4244
|
+
v1 = o1.replace(/\.v[0-9]+$/, '');
|
|
4245
|
+
}
|
|
4246
|
+
let v2 = o2;
|
|
4247
|
+
if (o2 && typeof o2 === 'string') {
|
|
4248
|
+
v2 = o2.replace(/\.v[0-9]+$/, '');
|
|
4250
4249
|
}
|
|
4251
|
-
|
|
4252
|
-
return o1 === o2;
|
|
4250
|
+
return v1 === v2;
|
|
4253
4251
|
}
|
|
4254
4252
|
truncateUri(uri) {
|
|
4255
4253
|
if (uri && typeof uri === 'string') {
|
|
4256
|
-
return uri.replace(
|
|
4254
|
+
return uri.replace(/\.v[0-9]+$/, '');
|
|
4257
4255
|
}
|
|
4258
4256
|
return uri;
|
|
4259
4257
|
}
|