@smartbit4all/ng-client 3.3.146 → 3.3.148
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 +4 -3
- package/fesm2015/smartbit4all-ng-client.mjs +3 -2
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +3 -2
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.3.148.tgz +0 -0
- package/smartbit4all-ng-client-3.3.146.tgz +0 -0
|
@@ -4252,7 +4252,8 @@ class SmartFormService {
|
|
|
4252
4252
|
let tobeMandatory = false;
|
|
4253
4253
|
if (constraint.mandatory === undefined) {
|
|
4254
4254
|
// not specified on server, use client state
|
|
4255
|
-
|
|
4255
|
+
// if widget is not visible, client should default to not mandatory
|
|
4256
|
+
tobeMandatory = widget.isVisible && wasMandatory;
|
|
4256
4257
|
}
|
|
4257
4258
|
else {
|
|
4258
4259
|
tobeMandatory = constraint.mandatory;
|
|
@@ -4332,7 +4333,7 @@ class SmartFormService {
|
|
|
4332
4333
|
if (!widgets) {
|
|
4333
4334
|
widgets = this.smartForm.widgets;
|
|
4334
4335
|
}
|
|
4335
|
-
this.applyComponentConstraints(
|
|
4336
|
+
this.applyComponentConstraints(widgets, this.smartForm.componentModel?.constraints);
|
|
4336
4337
|
}
|
|
4337
4338
|
}
|
|
4338
4339
|
addEmptyItemToValueList(widget, emptyLabel) {
|