@smartbit4all/ng-client 4.0.88 → 4.0.90
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/esm2022/lib/session/api/api/session.service.mjs +1 -1
- package/esm2022/lib/session/api/encoder.mjs +1 -1
- package/esm2022/lib/session/api/model/accountInfo.mjs +1 -1
- package/esm2022/lib/session/api/model/apiError.mjs +1 -1
- package/esm2022/lib/session/api/model/authenticationProviderData.mjs +1 -1
- package/esm2022/lib/session/api/model/getAuthenticationProvidersResponse.mjs +1 -1
- package/esm2022/lib/session/api/model/models.mjs +1 -1
- package/esm2022/lib/session/api/model/refreshSessionRequest.mjs +1 -1
- package/esm2022/lib/session/api/model/session.mjs +1 -1
- package/esm2022/lib/session/api/model/userActivityLog.mjs +1 -1
- package/esm2022/lib/session/api/param.mjs +1 -1
- package/esm2022/lib/session/api/variables.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api/default.service.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/index.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/componentType.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/componentWidgetType.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/layoutDirection.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/models.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/smartComponentLayoutDefinition.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/model/smartComponentWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/param.mjs +1 -1
- package/esm2022/lib/smart-component-layout/api/variables.mjs +1 -1
- package/esm2022/lib/smart-filter/api/filter/model/filterExpressionField.mjs +1 -1
- package/esm2022/lib/smart-filter-editor/api/model/filterExpressionField.mjs +1 -1
- package/esm2022/lib/smart-form/api/api/api.mjs +1 -1
- package/esm2022/lib/smart-form/api/api/default.service.mjs +1 -1
- package/esm2022/lib/smart-form/api/api.module.mjs +1 -1
- package/esm2022/lib/smart-form/api/configuration.mjs +1 -1
- package/esm2022/lib/smart-form/api/encoder.mjs +1 -1
- package/esm2022/lib/smart-form/api/index.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/propertyMapping.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/selectionDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetDirection.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartFormWidgetType.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartLayoutDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetDefinition.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/smartWidgetHint.mjs +1 -1
- package/esm2022/lib/smart-form/api/model/valueChangeMode.mjs +1 -1
- package/esm2022/lib/smart-form/api/param.mjs +1 -1
- package/esm2022/lib/smart-form/api/variables.mjs +1 -1
- package/esm2022/lib/smart-form/services/smartform.layout-definition.service.mjs +46 -1
- package/esm2022/lib/smart-form/smartform.form-model.mjs +1 -1
- package/esm2022/lib/smart-form/widgets/smartformwidget/smartformwidget.component.mjs +9 -1
- package/esm2022/lib/smart-grid/api/grid-api/api/api.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/api/grid.service.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/api.module.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/configuration.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/encoder.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/index.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridColumnContentType.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridColumnMeta.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridDataAccessConfig.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridModel.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridPage.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridRow.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridSelectionChange.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridSelectionMode.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridSelectionType.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridServerModel.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridUpdateData.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridView.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/gridViewDescriptor.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/model/models.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/param.mjs +1 -1
- package/esm2022/lib/smart-grid/api/grid-api/variables.mjs +1 -1
- package/esm2022/lib/smart-tree/tree-api/api/tree.service.mjs +1 -1
- package/esm2022/lib/smart-tree/tree-api/configuration.mjs +1 -1
- package/esm2022/lib/smart-tree/tree-api/encoder.mjs +1 -1
- package/esm2022/lib/smart-tree/tree-api/param.mjs +1 -1
- package/esm2022/lib/smart-tree/tree-api/variables.mjs +1 -1
- package/esm2022/lib/view-context/api/model/clipboardData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/deviceInfo.mjs +1 -1
- package/esm2022/lib/view-context/api/model/models.mjs +1 -1
- package/esm2022/lib/view-context/api/model/uiActionButtonDescriptor.mjs +1 -1
- package/esm2022/lib/view-context/api/model/view.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContext.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContextData.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewContextUpdate.mjs +1 -1
- package/esm2022/lib/view-context/api/model/viewPlaceholder.mjs +1 -1
- package/esm2022/lib/view-context/smart-view-context-dialog.service.mjs +3 -3
- package/esm2022/lib/view-context/value-api/api/api.mjs +1 -1
- package/esm2022/lib/view-context/value-api/api/value.service.mjs +1 -1
- package/esm2022/lib/view-context/value-api/api.module.mjs +1 -1
- package/esm2022/lib/view-context/value-api/configuration.mjs +1 -1
- package/esm2022/lib/view-context/value-api/encoder.mjs +1 -1
- package/esm2022/lib/view-context/value-api/index.mjs +1 -1
- package/esm2022/lib/view-context/value-api/model/genericValue.mjs +1 -1
- package/esm2022/lib/view-context/value-api/model/models.mjs +1 -1
- package/esm2022/lib/view-context/value-api/model/value.mjs +1 -1
- package/esm2022/lib/view-context/value-api/model/valueSetDefinition.mjs +1 -1
- package/esm2022/lib/view-context/value-api/model/valueSetDefinitionIdentifier.mjs +1 -1
- package/esm2022/lib/view-context/value-api/model/valueSetOperand.mjs +1 -1
- package/esm2022/lib/view-context/value-api/param.mjs +1 -1
- package/esm2022/lib/view-context/value-api/variables.mjs +1 -1
- package/fesm2022/smartbit4all-ng-client.mjs +55 -2
- package/fesm2022/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/smart-form/api/model/smartWidgetDefinition.d.ts +12 -0
- package/lib/smart-form/smartform.form-model.d.ts +51 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-4.0.90.tgz +0 -0
- package/smartbit4all-ng-client-4.0.88.tgz +0 -0
|
@@ -2725,7 +2725,7 @@ class SmartViewContextDialogService {
|
|
|
2725
2725
|
data: dialogData,
|
|
2726
2726
|
closable: !this.inject.get(DIALOG_DISABLE_CLOSE),
|
|
2727
2727
|
});
|
|
2728
|
-
dialogRef
|
|
2728
|
+
dialogRef.onClose.pipe(take(1)).subscribe((result) => {
|
|
2729
2729
|
this.closeDialog(dialogRef, dialogData);
|
|
2730
2730
|
});
|
|
2731
2731
|
return dialogRef;
|
|
@@ -2758,7 +2758,7 @@ class SmartViewContextDialogService {
|
|
|
2758
2758
|
}
|
|
2759
2759
|
dialogRef?.close();
|
|
2760
2760
|
if (dialogRef instanceof DynamicDialogRef) {
|
|
2761
|
-
|
|
2761
|
+
this.dialogService.dialogComponentRefMap.delete(dialogRef);
|
|
2762
2762
|
}
|
|
2763
2763
|
}
|
|
2764
2764
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SmartViewContextDialogService, deps: [{ token: i1$1.MatDialog }, { token: i2$1.Router }, { token: i3$1.DialogService }, { token: i0.Injector }, { token: COMPONENT_LIBRARY }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
@@ -5829,6 +5829,8 @@ class SmartformwidgetComponent {
|
|
|
5829
5829
|
this.onBlur?.pipe(takeUntil(this._destroy$)).subscribe(() => {
|
|
5830
5830
|
this.getErrorMessage(this.widgetInstance);
|
|
5831
5831
|
});
|
|
5832
|
+
// handle initial error message from server
|
|
5833
|
+
this.getErrorMessage(this.widgetInstance);
|
|
5832
5834
|
if (this.widgetInstance.type === SmartFormWidgetType.INDICATOR &&
|
|
5833
5835
|
this.widgetInstance.indicator) {
|
|
5834
5836
|
if (this.widgetInstance.indicator?.indicatorLength) {
|
|
@@ -6314,6 +6316,12 @@ class SmartformwidgetComponent {
|
|
|
6314
6316
|
widgetInstance.errorIconColor = errorIconColor;
|
|
6315
6317
|
return true;
|
|
6316
6318
|
}
|
|
6319
|
+
if (widgetInstance.serverErrorMessage) {
|
|
6320
|
+
widgetInstance.error = widgetInstance.serverErrorMessage;
|
|
6321
|
+
widgetInstance.errorIcon = widgetInstance.serverErrorIcon;
|
|
6322
|
+
widgetInstance.errorIconColor = widgetInstance.serverErrorColor;
|
|
6323
|
+
return true;
|
|
6324
|
+
}
|
|
6317
6325
|
widgetInstance.error = undefined;
|
|
6318
6326
|
}
|
|
6319
6327
|
return false;
|
|
@@ -8516,6 +8524,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8516
8524
|
type: SmartFormWidgetType.MONTH_PICKER,
|
|
8517
8525
|
label: layoutDefinition.label,
|
|
8518
8526
|
showLabel: layoutDefinition.showLabel,
|
|
8527
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8528
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8529
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8519
8530
|
};
|
|
8520
8531
|
return widget;
|
|
8521
8532
|
}
|
|
@@ -8528,6 +8539,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8528
8539
|
showLabel: layoutDefinition.showLabel,
|
|
8529
8540
|
isMultiple: layoutDefinition.matrix?.multiSelect,
|
|
8530
8541
|
value: layoutDefinition.matrix,
|
|
8542
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8543
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8544
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8531
8545
|
};
|
|
8532
8546
|
return widget;
|
|
8533
8547
|
}
|
|
@@ -8538,6 +8552,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8538
8552
|
label: layoutDefinition.label,
|
|
8539
8553
|
showLabel: layoutDefinition.showLabel,
|
|
8540
8554
|
type: SmartFormWidgetType.SORTABLE,
|
|
8555
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8556
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8557
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8541
8558
|
};
|
|
8542
8559
|
return widget;
|
|
8543
8560
|
}
|
|
@@ -8594,6 +8611,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8594
8611
|
isPassword: layoutDefinition.isPassword,
|
|
8595
8612
|
selection: layoutDefinition.selection,
|
|
8596
8613
|
filterErrorMessage: layoutDefinition.filterErrorMessage,
|
|
8614
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8615
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8616
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8597
8617
|
hint: layoutDefinition.hint,
|
|
8598
8618
|
maxLength: layoutDefinition.maxLength,
|
|
8599
8619
|
showCharacterLimitSuffix: layoutDefinition.showCharacterLimitSuffix,
|
|
@@ -8615,6 +8635,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8615
8635
|
style: layoutDefinition.style,
|
|
8616
8636
|
labelStyle: layoutDefinition.labelStyle,
|
|
8617
8637
|
valueList: [],
|
|
8638
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8639
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8640
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8618
8641
|
};
|
|
8619
8642
|
if (layoutDefinition.values) {
|
|
8620
8643
|
widget.valueList = layoutDefinition.values.map((value) => {
|
|
@@ -8645,6 +8668,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8645
8668
|
style: layoutDefinition.style,
|
|
8646
8669
|
labelStyle: layoutDefinition.labelStyle,
|
|
8647
8670
|
hint: layoutDefinition.hint,
|
|
8671
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8672
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8673
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8648
8674
|
};
|
|
8649
8675
|
return widget;
|
|
8650
8676
|
}
|
|
@@ -8663,6 +8689,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8663
8689
|
hint: layoutDefinition.hint,
|
|
8664
8690
|
maxLength: layoutDefinition.maxLength,
|
|
8665
8691
|
showCharacterLimitSuffix: layoutDefinition.showCharacterLimitSuffix,
|
|
8692
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8693
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8694
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8666
8695
|
};
|
|
8667
8696
|
return widget;
|
|
8668
8697
|
}
|
|
@@ -8688,6 +8717,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8688
8717
|
quillModules,
|
|
8689
8718
|
maxLength: layoutDefinition.maxLength,
|
|
8690
8719
|
showCharacterLimitSuffix: layoutDefinition.showCharacterLimitSuffix,
|
|
8720
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8721
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8722
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8691
8723
|
};
|
|
8692
8724
|
return widget;
|
|
8693
8725
|
}
|
|
@@ -8703,6 +8735,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8703
8735
|
style: layoutDefinition.style,
|
|
8704
8736
|
labelStyle: layoutDefinition.labelStyle,
|
|
8705
8737
|
hint: layoutDefinition.hint,
|
|
8738
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8739
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8740
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8706
8741
|
};
|
|
8707
8742
|
return widget;
|
|
8708
8743
|
}
|
|
@@ -8720,6 +8755,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8720
8755
|
valueList: [],
|
|
8721
8756
|
selection: layoutDefinition.selection,
|
|
8722
8757
|
hint: layoutDefinition.hint,
|
|
8758
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8759
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8760
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8723
8761
|
};
|
|
8724
8762
|
if (layoutDefinition.values) {
|
|
8725
8763
|
widget.valueList = layoutDefinition.values.map((value) => {
|
|
@@ -8747,6 +8785,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8747
8785
|
valueList: [],
|
|
8748
8786
|
selection: layoutDefinition.selection,
|
|
8749
8787
|
hint: layoutDefinition.hint,
|
|
8788
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8789
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8790
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8750
8791
|
};
|
|
8751
8792
|
if (layoutDefinition.values) {
|
|
8752
8793
|
widget.valueList = layoutDefinition.values.map((value) => {
|
|
@@ -8774,6 +8815,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8774
8815
|
valueList: [],
|
|
8775
8816
|
selection: layoutDefinition.selection,
|
|
8776
8817
|
hint: layoutDefinition.hint,
|
|
8818
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8819
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8820
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8777
8821
|
};
|
|
8778
8822
|
if (layoutDefinition.values) {
|
|
8779
8823
|
widget.valueList = layoutDefinition.values.map((value) => {
|
|
@@ -8801,6 +8845,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8801
8845
|
valueList: [],
|
|
8802
8846
|
selection: layoutDefinition.selection,
|
|
8803
8847
|
hint: layoutDefinition.hint,
|
|
8848
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8849
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8850
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8804
8851
|
};
|
|
8805
8852
|
if (layoutDefinition.values) {
|
|
8806
8853
|
widget.valueList = layoutDefinition.values.map((value) => {
|
|
@@ -8826,6 +8873,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8826
8873
|
style: layoutDefinition.style,
|
|
8827
8874
|
labelStyle: layoutDefinition.labelStyle,
|
|
8828
8875
|
hint: layoutDefinition.hint,
|
|
8876
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8877
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8878
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8829
8879
|
};
|
|
8830
8880
|
return widget;
|
|
8831
8881
|
}
|
|
@@ -8841,6 +8891,9 @@ class SmartformLayoutDefinitionService {
|
|
|
8841
8891
|
style: layoutDefinition.style,
|
|
8842
8892
|
labelStyle: layoutDefinition.labelStyle,
|
|
8843
8893
|
hint: layoutDefinition.hint,
|
|
8894
|
+
serverErrorMessage: layoutDefinition.errorMessage,
|
|
8895
|
+
serverErrorIcon: layoutDefinition.errorIcon,
|
|
8896
|
+
serverErrorColor: layoutDefinition.errorColor,
|
|
8844
8897
|
};
|
|
8845
8898
|
return widget;
|
|
8846
8899
|
}
|