@smartbit4all/ng-client 3.1.14 → 3.1.15
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-client/smart-component-api-client.mjs +15 -1
- package/esm2020/lib/view-context/smart-ui-action/ui-action.model.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/ui-action.service.mjs +5 -1
- package/fesm2015/smartbit4all-ng-client.mjs +19 -0
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +18 -0
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-client/smart-component-api-client.d.ts +2 -1
- package/lib/view-context/smart-ui-action/ui-action.model.d.ts +2 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-3.1.15.tgz +0 -0
- package/smartbit4all-ng-client-3.1.14.tgz +0 -0
|
@@ -7920,6 +7920,10 @@ class UiActionService {
|
|
|
7920
7920
|
}
|
|
7921
7921
|
else {
|
|
7922
7922
|
this.uiActionModel.serviceToUse.submitForm(validate);
|
|
7923
|
+
if (validate &&
|
|
7924
|
+
this.uiActionModel.serviceToUse.getInvalidFields().invalidFieldKeys.length) {
|
|
7925
|
+
return;
|
|
7926
|
+
}
|
|
7923
7927
|
}
|
|
7924
7928
|
}
|
|
7925
7929
|
if (uiAction.confirm) {
|
|
@@ -12556,6 +12560,20 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
12556
12560
|
};
|
|
12557
12561
|
this.uiActionService.execute(uiAction, options);
|
|
12558
12562
|
}
|
|
12563
|
+
getInvalidFields() {
|
|
12564
|
+
let aggregatedInvalidFields = {
|
|
12565
|
+
invalidFieldKeys: [],
|
|
12566
|
+
invalidFieldNames: [],
|
|
12567
|
+
};
|
|
12568
|
+
for (let entry of this.formWidgets.widgets) {
|
|
12569
|
+
let invalidFieldsOfForm = entry[1]?.getInvalidFields();
|
|
12570
|
+
if (invalidFieldsOfForm) {
|
|
12571
|
+
invalidFieldsOfForm.invalidFieldKeys.forEach((key) => aggregatedInvalidFields.invalidFieldKeys.push(key));
|
|
12572
|
+
invalidFieldsOfForm.invalidFieldNames.forEach((key) => aggregatedInvalidFields.invalidFieldNames.push(key));
|
|
12573
|
+
}
|
|
12574
|
+
}
|
|
12575
|
+
return aggregatedInvalidFields;
|
|
12576
|
+
}
|
|
12559
12577
|
//#region UseUiAction
|
|
12560
12578
|
getAdditionalParams(uiAction) {
|
|
12561
12579
|
return {
|