@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
|
@@ -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
|
-
|
|
4242
|
-
|
|
4243
|
-
|
|
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(
|
|
4247
|
+
return uri.replace(/\.v[0-9]+$/, '');
|
|
4257
4248
|
}
|
|
4258
4249
|
return uri;
|
|
4259
4250
|
}
|