@smartbit4all/ng-client 1.0.16 → 1.0.18
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 +2 -2
- package/esm2020/lib/view-context/api/model/openPendingData.mjs +1 -1
- package/esm2020/lib/view-context/api/model/uiActionDialogDescriptor.mjs +1 -1
- package/esm2020/lib/view-context/smart-ui-action/dialogs/ui-action-input-dialog/ui-action-input-dialog.component.mjs +22 -18
- package/fesm2015/smartbit4all-ng-client.mjs +24 -20
- package/fesm2015/smartbit4all-ng-client.mjs.map +1 -1
- package/fesm2020/smartbit4all-ng-client.mjs +23 -19
- package/fesm2020/smartbit4all-ng-client.mjs.map +1 -1
- package/lib/view-context/api/model/openPendingData.d.ts +3 -3
- package/lib/view-context/api/model/uiActionDialogDescriptor.d.ts +1 -0
- package/package.json +1 -1
- package/smartbit4all-ng-client-1.0.18.tgz +0 -0
- package/smartbit4all-ng-client-1.0.16.tgz +0 -0
|
@@ -25,7 +25,7 @@ import * as i3$2 from '@angular/material/snack-bar';
|
|
|
25
25
|
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
26
26
|
import { Validators } from '@angular/forms';
|
|
27
27
|
import * as i5$1 from '@smartbit4all/form';
|
|
28
|
-
import { SmartFormWidgetType,
|
|
28
|
+
import { SmartFormWidgetType, SmartValidatorName, SmartFormWidgetDirection, SmartformModule } from '@smartbit4all/form';
|
|
29
29
|
import { __decorate, __param } from 'tslib';
|
|
30
30
|
|
|
31
31
|
/**
|
|
@@ -3308,26 +3308,30 @@ class UiActionInputDialogComponent {
|
|
|
3308
3308
|
else {
|
|
3309
3309
|
type = SmartFormWidgetType.TEXT_BOX;
|
|
3310
3310
|
}
|
|
3311
|
+
let widgets = [
|
|
3312
|
+
{
|
|
3313
|
+
key: inputName,
|
|
3314
|
+
label: '',
|
|
3315
|
+
type,
|
|
3316
|
+
value: '',
|
|
3317
|
+
validators: [
|
|
3318
|
+
{
|
|
3319
|
+
validator: Validators.required,
|
|
3320
|
+
name: SmartValidatorName.required,
|
|
3321
|
+
errorMessage: 'Ez a mező kötelező',
|
|
3322
|
+
},
|
|
3323
|
+
],
|
|
3324
|
+
placeholder: this.descriptor[this.dialogType].placeholder ?? '',
|
|
3325
|
+
showLabel: true,
|
|
3326
|
+
},
|
|
3327
|
+
];
|
|
3328
|
+
if (widgets[0].type === SmartFormWidgetType.TEXT_FIELD && this.descriptor[this.dialogType]?.mask) {
|
|
3329
|
+
widgets[0].mask = this.descriptor[this.dialogType]?.mask;
|
|
3330
|
+
}
|
|
3311
3331
|
this.folderForm = {
|
|
3312
3332
|
direction: SmartFormWidgetDirection.COL,
|
|
3313
3333
|
model,
|
|
3314
|
-
widgets
|
|
3315
|
-
{
|
|
3316
|
-
key: inputName,
|
|
3317
|
-
label: '',
|
|
3318
|
-
type,
|
|
3319
|
-
value: '',
|
|
3320
|
-
validators: [
|
|
3321
|
-
{
|
|
3322
|
-
validator: Validators.required,
|
|
3323
|
-
name: SmartValidatorName.required,
|
|
3324
|
-
errorMessage: 'Ez a mező kötelező',
|
|
3325
|
-
},
|
|
3326
|
-
],
|
|
3327
|
-
placeholder: this.descriptor[this.dialogType].placeholder ?? '',
|
|
3328
|
-
showLabel: true,
|
|
3329
|
-
},
|
|
3330
|
-
],
|
|
3334
|
+
widgets,
|
|
3331
3335
|
};
|
|
3332
3336
|
}
|
|
3333
3337
|
save() {
|
|
@@ -3748,7 +3752,7 @@ let SmartComponentApiClient = class SmartComponentApiClient {
|
|
|
3748
3752
|
this.reSubscribeToChange = new SmartSubject(this._destroy$);
|
|
3749
3753
|
this.detectChange.subscribe((model) => {
|
|
3750
3754
|
this.model = model;
|
|
3751
|
-
this.data = model.data;
|
|
3755
|
+
// this.data = model.data as any;
|
|
3752
3756
|
});
|
|
3753
3757
|
this.viewContext = inject.get(SmartViewContextService);
|
|
3754
3758
|
this.uiActionService = inject.get(UiActionService);
|