@smartbit4all/ng-client 3.0.25 → 3.0.26
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/services/smartform.service.mjs +13 -1
- package/esm2020/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +1 -8
- package/fesm2015/smartbit4all-ng-client.mjs +13 -7
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +12 -7
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.0.26.tgz +0 -0
- package/smartbit4all-ng-client-3.0.25.tgz +0 -0
|
@@ -2963,6 +2963,7 @@ class SmartFormService {
|
|
|
2963
2963
|
}
|
|
2964
2964
|
}
|
|
2965
2965
|
copyFromValueSetToValuesList(widget, valueSets) {
|
|
2966
|
+
var _a, _b;
|
|
2966
2967
|
if (widget.type === SmartFormWidgetType.SELECT ||
|
|
2967
2968
|
widget.type === SmartFormWidgetType.SELECT_MULTIPLE ||
|
|
2968
2969
|
widget.type === SmartFormWidgetType.RADIO_BUTTON ||
|
|
@@ -2982,6 +2983,12 @@ class SmartFormService {
|
|
|
2982
2983
|
value: value[valueSetData.keyProperty],
|
|
2983
2984
|
};
|
|
2984
2985
|
});
|
|
2986
|
+
(_a = widget.valueList) === null || _a === void 0 ? void 0 : _a.unshift({
|
|
2987
|
+
key: '',
|
|
2988
|
+
label: '',
|
|
2989
|
+
type: SmartFormWidgetType.ITEM,
|
|
2990
|
+
value: undefined,
|
|
2991
|
+
});
|
|
2985
2992
|
}
|
|
2986
2993
|
else if (widget.selection.type === SelectionDefinition.TypeEnum.Object &&
|
|
2987
2994
|
!widget.selection.mapping.length) {
|
|
@@ -2995,6 +3002,12 @@ class SmartFormService {
|
|
|
2995
3002
|
value: value,
|
|
2996
3003
|
};
|
|
2997
3004
|
});
|
|
3005
|
+
(_b = widget.valueList) === null || _b === void 0 ? void 0 : _b.unshift({
|
|
3006
|
+
key: '',
|
|
3007
|
+
label: '',
|
|
3008
|
+
type: SmartFormWidgetType.ITEM,
|
|
3009
|
+
value: undefined,
|
|
3010
|
+
});
|
|
2998
3011
|
}
|
|
2999
3012
|
}
|
|
3000
3013
|
}
|
|
@@ -4249,13 +4262,6 @@ class SmartformwidgetComponent {
|
|
|
4249
4262
|
}
|
|
4250
4263
|
// calling this.truncateUri didn't work
|
|
4251
4264
|
// TODO: use widget.selection.parameter for ignoreUriVersion / strictUriComparison;
|
|
4252
|
-
if (this.widgetInstance) {
|
|
4253
|
-
if (this.widgetInstance.type == SmartFormWidgetType.SELECT ||
|
|
4254
|
-
this.widgetInstance.type == SmartFormWidgetType.SELECT_MULTIPLE) {
|
|
4255
|
-
if (this.widgetInstance.selection && this.widgetInstance.selection.type == 'PROPERTY') {
|
|
4256
|
-
}
|
|
4257
|
-
}
|
|
4258
|
-
}
|
|
4259
4265
|
let v1 = convert(o1);
|
|
4260
4266
|
let v2 = convert(o2);
|
|
4261
4267
|
return v1 === v2;
|